}
return super.getIcon(value);
}
private Icon getIconForEntity(Object nodeObject) {
IntegrationEntity entity = (IntegrationEntity) nodeObject;
EntityType type;
Size size;
if (entity instanceof RootFolder) {
size = Size.MEDIUM;
type = ((RootFolder) entity).getItemType();
} else {
size = Size.SMALL;
type = entity.getEntityType();
}
EntityIcons icons = EntityIcons.forType(type);
ValidationStatus status = validationModel.getStatus(entity, true);
return icons.getIcon(Category.fromValidationStatus(status), size);
}