BaseInjection (final Project project, BaseInjection injection) { final BaseInjectionPanel panel = new BaseInjectionPanel(injection, project); panel.reset(); String dimensionServiceKey = "#org.intellij.plugins.intelliLang.inject.config.ui.BaseInjectionDialog"; LanguageInjectionSupport support = InjectorUtils.findInjectionSupport(injection.getSupportId()); String helpId = support instanceof AbstractLanguageInjectionSupport ? ((AbstractLanguageInjectionSupport)support).getHelpId() : null; return showEditInjectionDialog(project, panel, dimensionServiceKey, helpId) ? injection : null; }