@Override
  public void beforeDocumentChange(@NotNull DocumentEvent e) {
    final Document document = e.getDocument();
    hadUnicodeImport = document.getUserData(KEY);
  }
@Override
  public void beforeDocumentChange(@NotNull DocumentEvent e)