public static boolean isATarget(final AnnotatedTypeMirror type,final Set<TypeVariable> targetTypeVars){
  return type.getKind() == TypeKind.TYPEVAR && targetTypeVars.contains(type.getUnderlyingType());
}

public static boolean isATarget ( final AnnotatedTypeMirror type , final Set < TypeVariable > targetTypeVars ) { return type . getKind ( ) == TypeKind . TYPEVAR && targetTypeVars . contains ( type . getUnderlyingType ( ) ) ; }
given a set of type variables for which we are inferring a type , returns true if type is a use of a type variable in the list of targettypevars .
