void () { ToolbarUpdater updater = myUpdaterRef.get(); JComponent component = updater == null ? null : updater.myComponent; if (component == null || !ApplicationManager.getApplication().isUnitTestMode() && !UIUtil.isShowing(component) && (!component.isDisplayable() || !myIncludeInvisible)) { return; } try { updater.myInUpdate = true; updater.updateActionsImpl(myForced); } finally { updater.myInUpdate = false; } }