@Override
  public boolean accepts(PsiElement element) {
    return element instanceof PsiClass && !(element instanceof PsiTypeParameter) || element instanceof PsiJavaCodeReferenceElement;
  }
@Override
  public boolean accepts(PsiElement element)