String (MethodSignature methodSignature) { String visibility = PsiModifier.PROTECTED; for (PsiMethod method : myDelegatedMethods) { MethodSignature otherSignature = method.getSignature(getSuperSubstitutor(method.getContainingClass())); if (MethodSignatureUtil.areSignaturesEqual(otherSignature, methodSignature)) { visibility = VisibilityUtil.getHighestVisibility(visibility, VisibilityUtil.getVisibilityModifier(method.getModifierList())); myAbstractDelegatedMethods.add(method); } } return visibility; }