List<GrStatement> (@Nullable GroovyPsiElement element, final boolean allExitPoints) { if (element == null) return Collections.emptyList(); final GroovyControlFlow flow; if (element instanceof GrControlFlowOwner) { flow = getGroovyControlFlow((GrControlFlowOwner)element); } else { flow = ControlFlowBuilder.buildControlFlow(element); } return collectReturns(flow.getFlow(), element, allExitPoints); }