public boolean isPushAllowed() {
    JTree tree = myPushLog.getTree();
    if (tree.isEditing()) return false;

    return ContainerUtil.exists(myView2Model.values(), model -> {
      return model.isSelected() && isPushAllowed(model);
    });
  }
public boolean isPushAllowed()