Reports incorrect elements in Bean Validation <constraint-mappings> files:

Example:


<constraint-mappings version="1.1">
    <bean class="my.UserClass" ignore-annotations="false">
        <field name="name">
            <constraint annotation="java.lang.String"/>  <!--'java.lang.String' is not a Java Annotation -->
        </field>

        <field name="name">
            <constraint annotation="javax.validation.constraints.Size">
                <element name="min">non-number</element>    <!--Should be a number from '-2,147,483,648' to '2,147,483,647' -->
            </constraint>
        </field>

        <getter name="zzz"> Cannot resolve symbol 'zzz'
            <valid/>
        </getter>

    </bean>
</constraint-mappings>