@Override
  public @NotNull PsiJavaCodeReferenceElement createReferenceElementByType(@NotNull PsiClassType type) {
    return type instanceof PsiClassReferenceType
           ? ((PsiClassReferenceType)type).getReference()
           : new LightClassTypeReference(myManager, type);
  }
@Override
  public @NotNull PsiJavaCodeReferenceElement createReferenceElementByType(@NotNull PsiClassType type)