boolean () { AnActionEvent event = createAnEvent(null, 0); myAction.update(event); Presentation p = event.getPresentation(); boolean changed = !areEqual(p, myPrevPresentation); myIconButton.setIcons(p.getIcon(), p.getDisabledIcon(), p.getHoveredIcon()); if (changed) { myInplaceButton.setIcons(myIconButton); String tooltipText = KeymapUtil.createTooltipText(p.getText(), myAction); myInplaceButton.setToolTipText(tooltipText.length() > 0 ? tooltipText : null); myInplaceButton.setVisible(p.isEnabled() && p.isVisible()); } myPrevPresentation = p; return changed; }