private EditorTextField getEditorTextField() {
    if (myComponent instanceof EditorTextField field) {
      return field;
    }
    else {
      return ((EditorTextField)((JComboBox<?>)myComponent).getEditor().getEditorComponent());
    }
  }
private EditorTextField getEditorTextField()