private static boolean hasCalls(@NotNull ControlFlow flow) {
    for (Instruction instruction : flow.getInstructions()) {
      if (instruction instanceof CallInstruction) {
        return true;
      }
    }
    return false;
  }
private static boolean hasCalls(@NotNull ControlFlow flow)