private static boolean checkForSubtree(@NotNull LogHierarchyNode tree,@NotNull String relativeBranch,@NotNull String localURL){
  final LinkedList<LogHierarchyNode> queue=new LinkedList<LogHierarchyNode>();
  queue.addLast(tree);
  while (!queue.isEmpty()) {
    final LogHierarchyNode element=queue.removeFirst();
    ProgressManager.checkCanceled();
    if (checkForEntry(element.getMe(),localURL,relativeBranch))     return true;
    queue.addAll(element.getChildren());
  }
  return false;
}

private static boolean checkForSubtree ( @ NotNull LogHierarchyNode tree , @ NotNull String relativeBranch , @ NotNull String localURL ) { final LinkedList < LogHierarchyNode > queue = new LinkedList < LogHierarchyNode > ( ) ; queue . addLast ( tree ) ; while ( ! queue . isEmpty ( ) ) { final LogHierarchyNode element = queue . removeFirst ( ) ; ProgressManager . checkCanceled ( ) ; if ( checkForEntry ( element . getMe ( ) , localURL , relativeBranch ) ) return true ; queue . addAll ( element . getChildren ( ) ) ; } return false ; }
todo : why parameters here are in [ relativebranch / sourcebranch , localurl / workingcopyroot ] order ? - not as in other similar checkxxx ( ) todo : methods ? check if this is correct , because currently it results that checkforentry ( ) from checklistforpaths ( ) and todo : checkforsubtree ( ) are called with swapped parameters .
