void (Object component, String key, Image icon) { Object[] definition = getDefinition(component, key, "icon"); if (set(component, (String) definition[1], icon)) { update(component, definition[2]); } }