private static void addErrorMessages(UIInput input, @Nullable PropertyDefinitionSimple propertyDefinitionSimple,
PropertySimple propertySimple, boolean prevalidate) {
if (prevalidate) {
// Pre-validate the property's value, in case the PC sent us an invalid live config.
PropertySimpleValueValidator validator = new PropertySimpleValueValidator(propertyDefinitionSimple);
//PropertySimple propertySimple = this.propertyMap.getSimple(propertyDefinitionSimple.getName());
prevalidatePropertyValue(input, propertySimple, validator);
}
// If there is a PC-detected error associated with the property, associate it with the input.
addPluginContainerDetectedErrorMessage(input, propertySimple);