private static boolean isRenameEvent(@NotNull VFileEvent e) {
    if (e instanceof VFilePropertyChangeEvent propChangeEvent && VirtualFile.PROP_NAME.equals(propChangeEvent.getPropertyName())) {
      final String oldName = (String)propChangeEvent.getOldValue();
      final String newName = (String)propChangeEvent.getNewValue();
      // Old and new names may actually be the same: sometimes such events are sent by VFS
      return !Objects.equals(oldName, newName);
    }
    return false;
  }
private static boolean isRenameEvent(@NotNull VFileEvent e)