private void updateRestoreLayoutActionVisibility() {
    List<AnAction> specialActions = new ArrayList<>();
    ActionManager actionManager = ActionManager.getInstance();
    for (AnAction action : myViewActions.getChildren(actionManager)) {
      if (!(action instanceof ViewLayoutModificationAction)) specialActions.add(action);
    }
    if (myMinimizeActionEnabled) {
      if (specialActions.isEmpty()) {
        myViewActions.addAction(new Separator()).setAsSecondary(true);
        AnAction separateWatches = actionManager.getAction("XDebugger.SeparateWatches");
        if (separateWatches != null) {
          myViewActions.addAction(separateWatches).setAsSecondary(true);
          myViewActions.addAction(new Separator()).setAsSecondary(true);
        }
        myViewActions.addAction(actionManager.getAction("Runner.ToggleTabLabels")).setAsSecondary(true);
        myViewActions.addAction(actionManager.getAction("Runner.RestoreLayout")).setAsSecondary(true);
      }
    }
    else {
      for (AnAction action : specialActions) {
        myViewActions.remove(action);
      }
    }
  }
private void updateRestoreLayoutActionVisibility()