code: private boolean hasTypeName(Type t, String name) {
          return
              name.equals(TypeMaker.getTypeName(t, true))
              ||
              name.equals(TypeMaker.getTypeName(t, false))
              ||
              (qualifiedName() + "." + name).equals(TypeMaker.getTypeName(t, true));
      }
docs: where