SpecialField (@NotNull DfType type) { if (type instanceof DfReferenceType && ((DfReferenceType)type).getSpecialField() != null) { return ((DfReferenceType)type).getSpecialField(); } for (SpecialField value : VALUES) { if (value.isMyQualifierType(type)) { return value; } } return null; }