private static void CreateWindow(TokenMethod method, ScopedRegistry registry)
        {
            GetTokenView getTokenView = EditorWindow.GetWindow <GetTokenView>(true, "Get token", true);

            getTokenView.SetRegistry(method, registry);
        }
 private void SetRegistry(TokenMethod tokenMethod, ScopedRegistry registry)
 {
     this.tokenMethod = tokenMethod;
     this.registry    = registry;
     this.initialized = true;
 }