void (String errorMessage) { //invoke later because of undo manager problem: when you try to undo changelist after description was already changed manually ApplicationManager.getApplication().invokeLater(() -> updateDescription(), ModalityState.current()); myOkEnabledListener.accept(errorMessage); }