docs: private static Main mainEmbeddedImpl(ContextFactory factory,
                                           Object scopeProvider,
                                           String title) {
          if (title == null) {
              title = "Rhino JavaScript Debugger (embedded usage)";
          }
          Main main = new Main(title);
          main.doBreak();
          main.setExitAction(new IProxy(IProxy.EXIT_ACTION));
  
          main.attachTo(factory);
          if (scopeProvider instanceof ScopeProvider) {
              main.setScopeProvider((ScopeProvider)scopeProvider);
          } else {
              Scriptable scope = (Scriptable)scopeProvider;
              if (scope instanceof Global) {
                  Global global = (Global)scope;
                  global.setIn(main.getIn());
                  global.setOut(main.getOut());
                  global.setErr(main.getErr());
              }
              main.setScope(scope);
          }
  
          main.pack();
          main.setSize(600, 460);
          main.setVisible(true);
          return main;
      }