void (JsonSchemaObject schema, Number value, PsiElement propertyValue, JsonValidationHost consumer) { Number exclusiveMaximumNumber = schema.getExclusiveMaximumNumber(); if (exclusiveMaximumNumber != null) { final double doubleValue = exclusiveMaximumNumber.doubleValue(); if (value.doubleValue() >= doubleValue) { consumer.error(JsonBundle.message("schema.validation.greater.than.exclusive.maximum", exclusiveMaximumNumber), propertyValue, JsonErrorPriority.LOW_PRIORITY); } } Number maximum = schema.getMaximum(); if (maximum == null) return; boolean isExclusive = Boolean.TRUE.equals(schema.isExclusiveMaximum()); final double doubleValue = maximum.doubleValue(); if (isExclusive) { if (value.doubleValue() >= doubleValue) { consumer.error(JsonBundle.message("schema.validation.greater.than.exclusive.maximum", maximum), propertyValue, JsonErrorPriority.LOW_PRIORITY); } } else { if (value.doubleValue() > doubleValue) { consumer.error(JsonBundle.message("schema.validation.greater.than.maximum", maximum), propertyValue, JsonErrorPriority.LOW_PRIORITY); } } }