List<RepoPackage> () { // Don't show URL next to the package name in "Available Packages" if only PyPI is in use final boolean customRepoConfigured = !getAdditionalRepositories().isEmpty(); final String url = customRepoConfigured ? PyPIPackageUtil.PYPI_LIST_URL : ""; return ContainerUtil.map(PyPIPackageCache.getInstance().getPackageNames(), name -> new RepoPackage(name, url, null)); }