@Override
    public @Nullable String getSelectedText() {
      return ReadAction.compute(() -> editor.getSelectionModel().getSelectedText());
    }
@Override
    public @Nullable String getSelectedText()