private void checkMinMaxRelation(final Messager messager,
            final AnnotationMirror mirror, final AnnotationValue valueMin,
            final AnnotationValue valueMax) {

        if (valueMin != null && valueMax != null) {
            final SourcePosition srcPosition = mirror.getPosition();
            final Integer validMinValue = getValidIntegerValue(valueMin);
            final Integer validMaxValue = getValidIntegerValue(valueMax);

            if (validMinValue != null && validMaxValue != null
                    && validMinValue > validMaxValue) {
                messager.printError(srcPosition, "max must be greater then min");
            }
        }
    }