boolean (PsiClass psiClass) { for (String methodName : METHODS_TO_IGNORE_CLASS) { for (PsiMethod method : psiClass.findMethodsByName(methodName, true)) { PsiClass containingClass = method.getContainingClass(); if (containingClass != null) { String className = containingClass.getQualifiedName(); boolean standardPreviewMethod = className != null && ALLOWED_METHOD_LOCATIONS.contains(className) || method.getName().equals("startInWriteAction") && returnsTrue(method); if (!standardPreviewMethod) { return true; } } } } return false; }