private static @Nullable JavaOverrideImplementMemberChooser showJavaOverrideImplementChooser(@Nullable JavaOverrideImplementMemberChooserContainer container,
                                                                                     @NotNull Editor editor,
                                                                                     @NotNull PsiElement aClass) {
    if (container == null) {
      return null;
    }
    final JavaOverrideImplementMemberChooser chooser = create(container);
    Project project = aClass.getProject();
    registerHandlerForComplementaryAction(project, editor, aClass, container.toImplement(), chooser);

    if (ApplicationManager.getApplication().isUnitTestMode()) {
      return chooser;
    }
    chooser.show();
    if (chooser.getExitCode() != DialogWrapper.OK_EXIT_CODE) return null;

    return chooser;
  }
private static @Nullable JavaOverrideImplementMemberChooser showJavaOverrideImplementChooser(@Nullable JavaOverrideImplementMemberChooserContainer container,
                                                                                     @NotNull Editor editor,
                                                                                     @NotNull PsiElement aClass)