@Override
  public @Nullable String getSelectedText(boolean allCarets) {
    return myEditor.getDocument().getText(TextRange.create(getSelectionStart(), getSelectionEnd()));
  }
@Override
  public @Nullable String getSelectedText(boolean allCarets)