TextAttributes (@NotNull PsiField field) { boolean isFinal = field.hasModifierProperty(PsiModifier.FINAL); boolean isStatic = field.hasModifierProperty(PsiModifier.STATIC); boolean isImported = HighlightNamesUtil.isStaticallyImported(field); if (isImported) { return isFinal ? getStaticFinalFieldImportedAttributes() : getStaticFieldImportedAttributes(); } else if (isStatic) { return isFinal ? getStaticFinalFieldAttributes() : getStaticFieldAttributes(); } else { return isFinal ? getInstanceFinalFieldAttributes() : getInstanceFieldAttributes(); } }