String (@NotNull final RefEntity ref) { if (ref instanceof RefImplicitConstructor) { return IMPLICIT_CONSTRUCTOR; } if (ref instanceof RefMethod) { return METHOD; } if (ref instanceof RefClass) { return CLASS; } if (ref instanceof RefField) { return FIELD; } if (ref instanceof RefParameter) { return PARAMETER; } if (ref instanceof RefPackage) { return PACKAGE; } if (ref instanceof RefJavaModule) { return JAVA_MODULE; } if (ref instanceof RefFunctionalExpression) { return FUNCTIONAL_EXPRESSION; } return null; }