private static boolean isModified(final @NotNull Editor editor) {
    final Long timestamp = editor.getUserData(SMART_ENTER_TIMESTAMP);
    return editor.getDocument().getModificationStamp() != timestamp.longValue();
  }
private static boolean isModified(final @NotNull Editor editor)