Icon () { Icon icon = getUserObject().getIcon(); //noinspection ConstantConditions if (icon == null) { Class<?> aClass = getUserObject().getClass(); PluginException.logPluginError(LOG, "FrameworkOrGroup::getIcon returns null for " + aClass, null, aClass); return EmptyIcon.ICON_16; } return icon; }