@Override
        public void onClosed(@NotNull LightweightWindowEvent event) {
          if (!result.isDisposed()) {
            Disposer.dispose(result);
          }
        }
@Override
        public void onClosed(@NotNull LightweightWindowEvent event)