GroovyControlFlow (@NotNull GrControlFlowOwner owner) { if (owner instanceof GroovyFileBaseImpl) { return ((GroovyFileBaseImpl)owner).getGroovyControlFlow(); } else if (owner instanceof GrExpressionLambdaBody) { return ControlFlowBuilder.buildControlFlow(owner); } else if (owner instanceof GrBlockImpl) { return ((GrBlockImpl)owner).getGroovyControlFlow(); } else { LOG.error("Unrecognized control flow owner"); throw new IllegalStateException(); } }