List<RatedResolveResult> () { final List<RatedResolveResult> results; if (myImportElement != null) { results = ResolveImportUtil.multiResolveImportElement(myImportElement, myImportedPrefix); } else { final ResolveResultList resList = new ResolveResultList(); ResolveImportUtil.multiResolveModuleInRoots(myImportedPrefix, myContainingFile) .forEach(res -> resList.poke(res, RatedResolveResult.RATE_NORMAL)); results = resList; } return ContainerUtil.map(results, this::tryReplaceDirWithPackage); }