public static boolean checkTypeP(Stella_Object self, Surrogate type, boolean shallowP) {
    return (((((QueryIterator)(Logic.$QUERYITERATOR$.get())) != null) &&
        (((QueryIterator)(Logic.$QUERYITERATOR$.get())).partialMatchStrategy != null)) ||
        Logic.checkStrictTypeP(self, type, shallowP));
  }