Painless supports classes, methods, fields, class bindings, and instance bindings and different types that are available to a whitelist. Painless annotations may only apply to a certain type or types. We should add infrastructure to the annotation parsers to allow/disallow specific types at the time the whitelist is loaded instead of checking in PainlessLookupBuilder.