Collection<PsiPackage> () { final PsiPackageReference packageReference = getLastReference(); if (packageReference == null) { return Collections.emptyList(); } return ContainerUtil.map(packageReference.multiResolve(false), (NullableFunction<ResolveResult, PsiPackage>)resolveResult -> (PsiPackage)resolveResult.getElement()); }