* @return boolean
   */
  public static boolean collectionP(Stella_Object objectref) {
    { Stella_Object instance = Logic.getInstance(objectref);

      if (instance == null) {
        return (false);
      }
      if (Surrogate.subtypeOfP(Stella_Object.safePrimaryType(instance), Logic.SGT_LOGIC_LOGIC_OBJECT)) {
        { LogicObject instance000 = ((LogicObject)(instance));

          return (Logic.testIsaP(instance000, Logic.SGT_PL_KERNEL_KB_COLLECTION));
        }
      }
      else {
        return (false);
      }
    }
  }