private void validateTypeNotIn(TypeMirror t,Set<TypeKind> invalidKinds){
  if (invalidKinds.contains(t.getKind()))   throw new IllegalArgumentException(t.toString());
}

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 .
