@Override
          public void documentChanged(@NotNull DocumentEvent event) {
            if (manuallyResized.isNull()) {
              popupRef.get().pack(true, true);
            }
          }
@Override
          public void documentChanged(@NotNull DocumentEvent event)