boolean (PsiField field) { if (isConstantField() && PsiAdapter.isConstantField(field)) { return true; } if (isEnumField() && PsiAdapter.isEnumField(field)) { return true; } if (isStaticModifier() && field.hasModifierProperty(PsiModifier.STATIC)) { return true; } if (isTransientModifier() && field.hasModifierProperty(PsiModifier.TRANSIENT)) { return true; } final Pattern fieldNamePattern = getFieldNamePattern(); if ((fieldNamePattern != null) && fieldNamePattern.matcher(field.getName()).matches()) { return true; } final String typeText = field.getType().getCanonicalText(); final Pattern fieldTypePattern = getFieldTypePattern(); if ((fieldTypePattern != null) && fieldTypePattern.matcher(typeText).matches()) { return true; } if (isLoggers() && loggerNames.contains(typeText)) { return true; } return false; }