public static AnnotatedTypeMirror leastUpperBound(AnnotatedTypeFactory atypeFactory,AnnotatedTypeMirror type1,AnnotatedTypeMirror type2){
  TypeMirror lub=InternalUtils.leastUpperBound(atypeFactory.getProcessingEnv(),type1.getUnderlyingType(),type2.getUnderlyingType());
  return leastUpperBound(atypeFactory,type1,type2,lub);
}

public static AnnotatedTypeMirror leastUpperBound ( AnnotatedTypeFactory atypeFactory , AnnotatedTypeMirror type1 , AnnotatedTypeMirror type2 ) { TypeMirror lub = InternalUtils . leastUpperBound ( atypeFactory . getProcessingEnv ( ) , type1 . getUnderlyingType ( ) , type2 . getUnderlyingType ( ) ) ; return leastUpperBound ( atypeFactory , type1 , type2 , lub ) ; }
returns the lub of two annotated types .
