protected <T extends MavenSimpleNode> void insertSorted(List<T> list, T newObject) {
    int pos = Collections.binarySearch(list, newObject, NODE_COMPARATOR);
    list.add(pos >= 0 ? pos : -pos - 1, newObject);
  }
protected <T extends MavenSimpleNode> void insertSorted(List<T> list, T newObject)