EmbeddedDistributionPaths { @NotNull public List<File> findAndroidStudioLocalMavenRepoPaths() { if (!StudioFlags.USE_DEVELOPMENT_OFFLINE_REPOS.get() && !isInTestingMode()) { return ImmutableList.of(); } return doFindAndroidStudioLocalMavenRepoPaths(); }  @NotNull static EmbeddedDistributionPaths getInstance(); @NotNull List<File> findAndroidStudioLocalMavenRepoPaths(); @NotNull File findEmbeddedProfilerTransform(@NotNull AndroidVersion version); String findEmbeddedInstaller(); @Nullable File findEmbeddedGradleDistributionPath(); @Nullable File findEmbeddedGradleDistributionFile(@NotNull String gradleVersion); @Nullable File tryToGetEmbeddedJdkPath(); @NotNull File getEmbeddedJdkPath();  }
@Test public void testFindAndroidStudioLocalMavenRepoPaths() { File rootDir = new File(PathManager.getHomePath()).getParentFile().getParentFile(); List<File> expectedRepo = Arrays.asList(new File(rootDir, "out/repo"), new File(rootDir, "out/studio/repo"), new File(rootDir, "prebuilts/tools/common/m2/repository")); expectedRepo = expectedRepo.stream().filter(File::isDirectory).collect(Collectors.toList()); List<File> paths = inst.doFindAndroidStudioLocalMavenRepoPaths(); assertThat(paths).hasSize(expectedRepo.size()); assertThat(paths).containsExactlyElementsIn(expectedRepo); }