@Override
    public void setText(JTextField textField, @NotNull String text) {
      if (textField.getSelectedText() != null) {
        textField.replaceSelection(text);
      }
      else {
        textField.setText(text);
      }
    }
@Override
    public void setText(JTextField textField, @NotNull String text)