<@U092N7GGG> No, there will be only non-static met...
# kontributors
s
@yole No, there will be only non-static method in Bar$Companion
Copy code
KotlinFunctionShortNameIndex.getInstance().get("foobar", project, scope)
                .map { LightClassUtil.getLightClassMethod(it) as? PsiMethod }
                .forEach {
                    val annotations = it?.modifierList?.annotations?.mapNotNull { it.qualifiedName }?.joinToString(",")
                    println("${it?.getKotlinFqName()} ${it?.hasModifierProperty(PsiModifier.STATIC)} $annotations")
                }
Produces
Copy code
foo.Bar.Companion.foobar false kotlin.jvm.JvmStatic