MockGitRepository (final String name) { final Ref<VirtualFile> root = Ref.create(); EdtTestUtil.runInEdtAndWait(() -> root.set(createChildData(PlatformTestUtil.getOrCreateProjectBaseDir(ourProject), name))); return new MockGitRepository(ourProject, root.get()); }