if (expectedType != int.class) {
if (expectedType != int.class && expectedType != long.class) {
    public static void validateInteger(final ParseContext ctx) {        if (ctx.elementName == null) {            return;        }        Class expectedType = getExpectedType(ctx);        if (expectedType != int.class) {            throw new AnnotationValidationException(createErrorMessage(ctx, int.class.getName()));        }    }