List<PyPackage> () { if (!Registry.is("python.use.targets.api")) { return Collections.emptyList(); } final List<PyPackage> packages = myPackagesCache; return packages != null ? Collections.unmodifiableList(packages) : null; }