File (@Nullable String overriddenLocalRepository, @Nullable String overriddenMavenHome, @Nullable String overriddenUserSettingsFile) { MavenHomeType type = resolveMavenHomeType(overriddenMavenHome); if (type instanceof StaticResolvedMavenHomeType st) { return resolveLocalRepository(overriddenLocalRepository, st, overriddenUserSettingsFile); } throw new IllegalArgumentException("Cannot resolve local repository for wrapped maven, this API is deprecated"); }