boolean (PsiMethod method) { @NonNls final String name = method.getName(); final PsiClass containingClass = method.getContainingClass(); if (containingClass == null) { return false; } @NonNls final String qualifiedName = containingClass.getQualifiedName(); if ("getDeclaredFields".equals(name)) { return "java.lang.Class".equals(qualifiedName); } if ("toString".equals(name)) { return "org.apache.commons.lang.builder.ReflectionToStringBuilder".equals(qualifiedName) || "java.util.Objects".equals(qualifiedName); } return false; }