public static void OpenWindow(ReferenceFinder referenceFinder)
        {
            ReferenceFinderEditorWindow window = GetWindow <ReferenceFinderEditorWindow>(true, "Find References", true);

            window.position = new Rect(new Vector2(200, 200), new Vector2(300, 350));

            ReferenceFinderEditorWindow.referenceFinder = referenceFinder;
            referenceFinder.repaint += window.Repaint;
        }
        public static void FindObjectReferences(Object[] assets)
        {
            ReferenceFinderEditorWindow window = GetWindow <ReferenceFinderEditorWindow>(true, "Find References", true);

            window.position = new Rect(new Vector2(200, 200), new Vector2(300, 350));

            referenceFinder          = new ReferenceFinder();
            referenceFinder.repaint += window.Repaint;
            referenceFinder.FindObjectReferences(assets);
        }