It's safer to do:

    AnnotationValidator validator = fAnnotationTypeToValidatorMap.get(validateWithAnnotation);
    if (validator != null) {
        return validator;
    }