if (isParallelEnd(current)) { BlockEndNode end = ((BlockEndNode) current); FlowNode possibleOutput = hitParallelEnd(end, parents, blackList); // possibleOutput can only be "p" FlowNode possibleOutput = hitParallelEnd(end, parents, blackList); // What if output is block but other branches aren't? if (possibleOutput != null) { nextType = NodeType.PARALLEL_BRANCH_END;