@Override
  public void accept(@NotNull RefVisitor visitor) {
    if (visitor instanceof RefJavaVisitor javaVisitor) {
      ReadAction.run(() -> javaVisitor.visitJavaModule(this));
    }
    else {
      super.accept(visitor);
    }
  }
@Override
  public void accept(@NotNull RefVisitor visitor)