ExecutionEnvironment (@NotNull ExecutionEnvironment environment, @Nullable ProgramRunner runner) { if (runner == null || runner.equals(environment.getRunner())) { return environment; } else { return new ExecutionEnvironmentBuilder(environment).runner(runner).build(); } }