jetbrains-ultimate/tst-212/com/goide/vgo/VgoTestUtil.java [126:153]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        List<VgoRootToModule> vgoModules =
            ContainerUtil.map(modules, module -> new VgoRootToModule(module.getRoot(), module));
        VgoModulesRegistry.getInstance(fixture.getProject()).updateModules(fixture.getModule(), vgoModules);
    }

    @NotNull
    public static VgoFile getGoModPsiFile(@NotNull CodeInsightTestFixture fixture, @NotNull VgoModule vgoModule) {
        return (VgoFile)VgoTestUtil.getPsiFile(fixture, getGoModFile(vgoModule));
    }

    public static @NotNull VirtualFile getGoModFile(@NotNull VgoModule vgoModule) {
        return vgoModule.getRoot().findChild(VgoUtil.GO_MOD);
    }

    public static @Nullable PsiFile getPsiFile(@NotNull CodeInsightTestFixture fixture, @NotNull VirtualFile virtualFile) {
        return ReadAction.compute(() -> PsiManager.getInstance(fixture.getProject()).findFile(virtualFile));
    }

    @NotNull
    public static File getGoTestDataPath(@NotNull String path) {
        String homePath = PathManager.getHomePath();
        File testData = FileUtil.findFirstThatExist(homePath + "/goland/intellij-go/src/test/testData/" + path, // go tests in ide
                                                    homePath + "/src/test/testData/" + path, // ???
                                                    homePath + "/goland/intellij-go/" + path, // vgo tests in ide
                                                    "src/test/testData/" + path, // go tests
                                                    "../" + path, // vgo tests
                                                    "../src/test/testData/" + path); // go tests in vgo submodule
        return Objects.requireNonNull(testData);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



jetbrains-ultimate/tst-213+/com/goide/vgo/VgoTestUtil.java [127:154]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        List<VgoRootToModule> vgoModules =
            ContainerUtil.map(modules, module -> new VgoRootToModule(module.getRoot(), module));
        VgoModulesRegistry.getInstance(fixture.getProject()).updateModules(fixture.getModule(), vgoModules);
    }

    @NotNull
    public static VgoFile getGoModPsiFile(@NotNull CodeInsightTestFixture fixture, @NotNull VgoModule vgoModule) {
        return (VgoFile)VgoTestUtil.getPsiFile(fixture, getGoModFile(vgoModule));
    }

    public static @NotNull VirtualFile getGoModFile(@NotNull VgoModule vgoModule) {
        return vgoModule.getRoot().findChild(VgoUtil.GO_MOD);
    }

    public static @Nullable PsiFile getPsiFile(@NotNull CodeInsightTestFixture fixture, @NotNull VirtualFile virtualFile) {
        return ReadAction.compute(() -> PsiManager.getInstance(fixture.getProject()).findFile(virtualFile));
    }

    @NotNull
    public static File getGoTestDataPath(@NotNull String path) {
        String homePath = PathManager.getHomePath();
        File testData = FileUtil.findFirstThatExist(homePath + "/goland/intellij-go/src/test/testData/" + path, // go tests in ide
                                                    homePath + "/src/test/testData/" + path, // ???
                                                    homePath + "/goland/intellij-go/" + path, // vgo tests in ide
                                                    "src/test/testData/" + path, // go tests
                                                    "../" + path, // vgo tests
                                                    "../src/test/testData/" + path); // go tests in vgo submodule
        return Objects.requireNonNull(testData);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



