public static GraphCreatorWindow ShowWindow(Type graphType)
 {
     window = ShowWindow();
     if (graphType == typeof(uNodeClass))
     {
         window.graphCreator = FindGraphCreators().First(g => g is ClassGraphCreator);
     }
     else if (graphType == typeof(uNodeStruct))
     {
         window.graphCreator = FindGraphCreators().First(g => g is StructGraphCreator);
     }
     else if (graphType == typeof(uNodeClassComponent))
     {
         window.graphCreator = FindGraphCreators().First(g => g is ClassComponentCreator);
     }
     else if (graphType == typeof(uNodeClassAsset))
     {
         window.graphCreator = FindGraphCreators().First(g => g is ClassAssetCreator);
     }
     else if (graphType == typeof(uNodeComponentSingleton))
     {
         window.graphCreator = FindGraphCreators().First(g => g is SingletonGraphCreator);
     }
     else if (graphType == typeof(uNodeInterface))
     {
         window.graphCreator = FindGraphCreators().First(g => g is ClassGraphCreator);
     }
     else if (graphType == typeof(uNodeClass))
     {
         window.graphCreator = FindGraphCreators().First(g => g is ClassGraphCreator);
     }
     return(window);
 }
 public static GraphCreatorWindow ShowWindow()
 {
     window              = GetWindow <GraphCreatorWindow>(true);
     window.minSize      = new Vector2(300, 250);
     window.titleContent = new GUIContent("Create New Graph");
     window.Show();
     return(window);
 }