PsiSymbolReferenceHints (@NotNull Class<? extends PsiSymbolReference> referenceClass) { assert referenceClass != PsiSymbolReference.class; return new PsiSymbolReferenceHints() { @Override public @NotNull Class<? extends PsiSymbolReference> getReferenceClass() { return referenceClass; } }; }