private void validateTypeNotIn ( TypeMirror t , Set < TypeKind > invalidKinds ) { if ( invalidKinds . contains ( t . getKind ( ) ) ) throw new IllegalArgumentException ( t . toString ( ) ) ; }
Throws an IllegalArgumentException if a type s kind is one of a set .