boolean (@NotNull LogHierarchyNode tree) { LinkedList<LogHierarchyNode> queue = new LinkedList<>(); queue.addLast(tree); while (!queue.isEmpty()) { LogHierarchyNode element = queue.removeFirst(); ProgressManager.checkCanceled(); if (checkForEntry(element.getMe(), myMergeContext.getRepositoryRelativeSourcePath(), myMergeContext.getRepositoryRelativeWorkingCopyPath())) { return true; } queue.addAll(element.getChildren()); } return false; }