public boolean hasUnmarkedElements() {
    Map<T, Boolean> elementMarkStates = getElementMarkStates();
    for (Map.Entry<T, Boolean> entry : elementMarkStates.entrySet()) {
      if (!entry.getValue()) {
        return true;
      }
    }
    return false;
  }
public boolean hasUnmarkedElements()