boolean (@NotNull PsiMethod method) { if (GET_CLASS_METHOD.equals(method.getName())) { PsiClass aClass = method.getContainingClass(); return aClass != null && CommonClassNames.JAVA_LANG_OBJECT.equals(aClass.getQualifiedName()); } return false; }