boolean (@NotNull CustomActionsSchema schema, @NotNull DefaultMutableTreeNode node, @NotNull ActionIconInfo selectedInfo, @Nullable Component component) { Pair<String, Icon> pair = getActionIdAndIcon(node); String actionId = pair.first; if (actionId != null) { Icon originalIcon = pair.second; Icon selectedIcon = selectedInfo.getIcon(); if (selectedIcon != originalIcon) { String iconReference = selectedIcon != null ? selectedInfo.getIconReference() : null; return doSetIcon(schema, node, iconReference); } } return false; }