code: public boolean contains(int element) {
      return element >= 0 && this.imported(element) && this.pos.get(Math.abs(element)) >= 0;
    }
docs: Returns whether a given element is already imported and present in the queue or not.
  @param element the element
  @return {@code true} if the element is already imported and present in the queue, {@code false otherwise}.