private void beforeContentsChange(@NotNull VFileContentChangeEvent e) {
    VirtualFile file = e.getFile();
    if (!shouldProcess(e, file)) return;
    if (isUndoable(e, file)) return;
    registerNonUndoableAction(file);
  }
private void beforeContentsChange(@NotNull VFileContentChangeEvent e)