JavaOverrideImplementMemberChooser (@NotNull JavaOverrideImplementMemberChooserContainer container) { final JavaOverrideImplementMemberChooser javaOverrideImplementMemberChooser = new JavaOverrideImplementMemberChooser(container.file(), container.all(), container.onlyPrimary(), container.lazyElementsWithPercent(), container.project(), container.overrideVisible(), container.merge(), container.toImplement(), PropertiesComponent.getInstance(container.project()) .getBoolean(PROP_OVERRIDING_SORTED_OVERRIDE_IMPLEMENT)); javaOverrideImplementMemberChooser.setTitle(getChooserTitle(container.toImplement(), container.merge())); javaOverrideImplementMemberChooser.setCopyJavadocVisible(true); if (container.selectElements() != null) { javaOverrideImplementMemberChooser.selectElements(container.selectElements()); } if (ApplicationManager.getApplication().isUnitTestMode()) { if (!container.toImplement() || container.onlyPrimary().length == 0) { javaOverrideImplementMemberChooser.selectElements(container.all()); } javaOverrideImplementMemberChooser.close(DialogWrapper.OK_EXIT_CODE); return javaOverrideImplementMemberChooser; } return javaOverrideImplementMemberChooser; }