boolean () { if (getRootPane() == null) return false; boolean changed = false; boolean anyVisible = false; boolean anyModified = false; for (ActionButton each : myButtons) { changed |= each.update(); each.setMouseDeadZone(myTabs.getTabActionsMouseDeadZone$intellij_platform_ide()); anyVisible |= each.getComponent().isVisible(); Boolean markModified = each.getPrevPresentation().getClientProperty(JBEditorTabs.MARK_MODIFIED_KEY); if (markModified != null) { anyModified |= markModified; } } myActionsIsVisible = anyVisible; myMarkModified = anyModified; return changed; }