void (Project project, Factory<? extends BaseInjection> producer) { BaseInjection originalInjection = producer.create(); BaseInjection newInjection = showDefaultInjectionUI(project, originalInjection.copy()); if (newInjection != null) { originalInjection.copyFrom(newInjection); } }