toKmFunction

fun PsiMethod.toKmFunction(): KmFunction?(source)

Return

the corresponding KmFunction for this PsiMethod, or null if there is no corresponding KmFunction. This method is only meaningful if this PsiMethod represents a method defined in bytecode (most often a ClsMethodImpl).