@Override
        public void documentChanged(@NotNull DocumentEvent e) {
          documentManager.commitDocument(document);
          validateButtons();
        }
@Override
        public void documentChanged(@NotNull DocumentEvent e)