Exceptions exc = FilteringUtils.getRootExceptions(stacktrace);
if (searchOnlyOpens && !PersistenceUtils.exceptionIsOpen(exc)){
continue;
}
List<Line> lines = new ArrayList<Line>(stacktrace.getLineCollection());
Collections.sort(lines, new LineComparator());
Iterator<Line> iterator = lines.iterator();
while (iterator.hasNext()){
Line line = iterator.next();
int j = 0;
while (FilteringUtils.areEquals(line, elements[shortestLineIndex+j])){