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