boolean (@NotNull UCallExpression potentialRecursiveCall, @NotNull UMethod uMethod) { PsiMethod resolvedMethod = potentialRecursiveCall.resolve(); if (resolvedMethod == null) return false; UElement resolvedUMethod = UastContextKt.toUElement(resolvedMethod); if (resolvedUMethod == null) return false; return uMethod.getSourcePsi() == resolvedUMethod.getSourcePsi(); }