boolean (@NotNull PsiField field) { final String fieldName = field.getName(); final PsiType fieldType = field.getType(); return ("resources".equals(fieldName) && InheritanceUtil.isInheritor(fieldType, "java.util.ResourceBundle") || "location".equals(fieldName) && InheritanceUtil.isInheritor(fieldType, "java.net.URL")) && isDeclaredInControllerClass(field); }