void (MemberInfoBase<? extends PsiElement> memberInfo, PsiMethod methodBySignature) { PsiMethod superMethod = (PsiMethod)memberInfo.getMember(); PsiClass containingClass = methodBySignature.getContainingClass(); if (containingClass != null) { Collection<PsiReference> superReferences = ReferencesSearch.search(superMethod, new LocalSearchScope(containingClass)).findAll(); for (PsiReference reference : superReferences) { PsiElement element = reference.getElement(); if (element instanceof PsiReferenceExpression referenceExpression && superMethod.getBody() != null) { // No super method body: either native method or compilation error new InlineMethodProcessor(element.getProject(), superMethod, referenceExpression, null, true) .inlineMethodCall(referenceExpression); } } } }