@Override
  public @NotNull Project getProject() {
    PsiManager manager = getManager();
    if (manager == null) {
      throw new PsiInvalidElementAccessException(this);
    }

    return manager.getProject();
  }
@Override
  public @NotNull Project getProject()