private static @NotNull GroovyControlFlow getFlow(@NotNull PsiElement element) {
    return element instanceof GrControlFlowOwner
           ? ControlFlowUtils.getGroovyControlFlow((GrControlFlowOwner)element)
           : ControlFlowBuilder.buildControlFlow((GroovyPsiElement)element);
  }
private static @NotNull GroovyControlFlow getFlow(@NotNull PsiElement element)