boolean (PsiMethod method, PsiMethod parentMethod, PsiType qualifierType) { if (!OBJECT_METHOD_PATTERN.accepts(method)) { return false; } if (OBJECT_METHOD_PATTERN.accepts(parentMethod) && method.getName().equals(parentMethod.getName())) { return false; } if ("toString".equals(method.getName())) { if (qualifierType.equalsToText(CommonClassNames.JAVA_LANG_STRING_BUFFER) || InheritanceUtil.isInheritor(qualifierType, CommonClassNames.JAVA_LANG_ABSTRACT_STRING_BUILDER)) { return false; } } return true; }