@Override
  public @NotNull PsiReferenceExpression createReferenceExpression(@NotNull PsiClass aClass) throws IncorrectOperationException {
    String text;
    if (aClass instanceof PsiImplicitClass) {
      throw new IncorrectOperationException("Cannot create reference to implicitly declared class");
    }
    if (aClass instanceof PsiAnonymousClass) {
      text = ((PsiAnonymousClass)aClass).getBaseClassType().getPresentableText();
    }
    else {
      text = aClass.getName();
    }
    return new LightClassReferenceExpression(myManager, text, aClass);
  }
@Override
  public @NotNull PsiReferenceExpression createReferenceExpression(@NotNull PsiClass aClass)