public boolean computeVisibility(
      HashSet<ToolBarContributionRecord> recentlyUpdated,
      MToolBarElement item,
      ExpressionContext exprContext) {
    boolean currentVisibility = isVisible;

    if (currentVisibility && item.getVisibleWhen() instanceof MCoreExpression) {
      boolean val =
          ContributionsAnalyzer.isVisible((MCoreExpression) item.getVisibleWhen(), exprContext);
      currentVisibility = val;
    }
    return currentVisibility;
  }
 public boolean anyVisibleWhen() {
   if (toolbarContribution.getVisibleWhen() != null) {
     return true;
   }
   for (MToolBarElement child : toolbarContribution.getChildren()) {
     if (child.getVisibleWhen() != null) {
       return true;
     }
   }
   return false;
 }