boolean (@NotNull PropagationDirection direction) { for (final TraceContainer container : myTraceContainers) { if (container.highlightedExists()) { return true; } } return PropagationDirection.FORWARD.equals(direction) ? selectionExistsForward() : selectionExistsBackward(); }