public static void updatePresentation(@NotNull AnAction action)  {
    for (PresentationFactory factory : ourAllFactories) {
      Presentation presentation = factory.myPresentations.get(action);
      if (presentation != null) {
        presentation.putClientProperty(NEED_UPDATE_PRESENTATION, true);
      }
    }
  }
public static void updatePresentation(@NotNull AnAction action)