code: private boolean isDouble(VisitorState state, Type type) {
      Type trueType = unboxedTypeOrType(state, type);
      return trueType.getKind() == TypeKind.DOUBLE;
    }
docs: Determines if the type is a double, including reference types.