@Override
  public boolean importClass(@NotNull PsiClass aClass) {
    PsiElement context = getContext();
    String className = aClass.getName();
    if (context != null && className != null) {
      PsiClass resolved = JavaPsiFacade.getInstance(getProject()).getResolveHelper().resolveReferencedClass(className, context);
      if (resolved != null) {
        return getManager().areElementsEquivalent(aClass, resolved);
      }
    }

    if (!myPseudoImports.containsKey(className)) {
      if (myPseudoImports == EMPTY) {
        myPseudoImports = new LinkedHashMap<>();
      }

      myPseudoImports.put(className, aClass);
      myManager.beforeChange(false); // to clear resolve caches!
    }
    return true;
  }
@Override
  public boolean importClass(@NotNull PsiClass aClass)