code: public boolean isCollection()
      {
          return type.equals(Relation.ForeignKey.ONE_TO_MANY) || type.equals(Relation.ForeignKey.MANY_TO_MANY);
      }
docs: Checks if is collection.
  
  @return true, if is collection