public static boolean shouldRevert(@NotNull TreeAction action) {
    return action instanceof Filter && ((Filter)action).isReverted();
  }
public static boolean shouldRevert(@NotNull TreeAction action)