semoro
09/01/2016, 1:47 PMKtLightMethod::hasModifierProperty(PsiModifier.STATIC)
returns true for
object Bar {
@JvmStatic
fun foobar{} //This method
}
But false for
class Bar {
companion object {
@JvmStatic
fun foobar() {
}
}
}
Instance of KtLightMethod obtained by LightClassUtil.getLightClassMethod(it) from KotlinFunctionShortNameIndex.getInstance().get('foobar',project,scope)