@Override
  public void apply() throws ConfigurationException {
    if (myEditor == null) return;
    final boolean editorWasModified = myEditor.isModified();
    myEditor.apply();
    if (editorWasModified) {
      ApplicationManager.getApplication().runWriteAction(() -> myModifiableModel.commit());
      resetEditor();
    }
  }
@Override
  public void apply()