List<SmartStepTarget> (List<SmartStepTarget> targets) { if (targets.size() > 1) { // deprioritize filtered items in stepping filters int firstGood = ContainerUtil.indexOf(targets, elem -> !DebugProcessImpl.isClassFiltered(elem.getClassName())); if (firstGood > 0) { targets = ContainerUtil.concat(targets.subList(firstGood, targets.size()), targets.subList(0, firstGood)); } } return targets; }