Source:
<code>public ScoredCandidates<T> generate( T content, ResultDescription desc, EquivToTelescopeResult equivToTelescopeResult ) { DefaultScoredCandidates.Builder<T> candidates = DefaultScoredCandidates.fromSource("Alias"); desc.startStage("Resolving aliases:"); EquivToTelescopeComponent generatorComponent = EquivToTelescopeComponent.create(); generatorComponent.setComponentName("Alias Resolving Equivalence Generator"); for (Alias alias : getExpandedAliases(content.getAliases())) { desc.appendText("namespace: %s, value: %s", alias.getNamespace(), alias.getValue()); Iterable<LookupEntry> lookupEntries = lookupEntryStore.entriesForAliases( Optional.of(alias.getNamespace()), ImmutableSet.of(alias.getValue()), publishers, includeUnpublishedContent ); <START> List<String> lookupUris = new ArrayList<>(); <END> for (LookupEntry lookupEntry : lookupEntries) { lookupUris.add(lookupEntry.uri()); } ResolvedContent resolved = resolver.findByCanonicalUris(lookupUris); for (T identified : Iterables.filter(resolved.getAllResolvedResults(), cls)) { if (identified.isActivelyPublished()) { candidates.addEquivalent(identified, aliasMatchingScore); desc.appendText("Resolved %s", identified.getCanonicalUri()); generatorComponent.addComponentResult(identified.getId(), aliasMatchingScore.toString()); } } if (resolved.getUnresolved().size() > 0) { desc.appendText("Missed %s", resolved.getUnresolved().size()); } } equivToTelescopeResult.addGeneratorResult(generatorComponent); desc.finishStage(); return candidates.build(); }</code><technical_language>suggestion List<String> lookupUris = MoreStreams.stream(lookupEntries) .map(LookupEntry::uri) .collect(MoreCollectors.toImmutableList);</technical_language>

Target:
public ScoredCandidates<T> generate( T content, ResultDescription desc, EquivToTelescopeResult equivToTelescopeResult ) { DefaultScoredCandidates.Builder<T> candidates = DefaultScoredCandidates.fromSource("Alias"); desc.startStage("Resolving aliases:"); EquivToTelescopeComponent generatorComponent = EquivToTelescopeComponent.create(); generatorComponent.setComponentName("Alias Resolving Equivalence Generator"); for (Alias alias : getExpandedAliases(content.getAliases())) { desc.appendText("namespace: %s, value: %s", alias.getNamespace(), alias.getValue()); Iterable<LookupEntry> lookupEntries = lookupEntryStore.entriesForAliases( Optional.of(alias.getNamespace()), ImmutableSet.of(alias.getValue()), publishers, includeUnpublishedContent ); List<String> lookupUris = MoreStreams.stream(lookupEntries) .map(LookupEntry::uri) .collect(MoreCollectors.toImmutableList()); ResolvedContent resolved = resolver.findByCanonicalUris(lookupUris); for (T identified : Iterables.filter(resolved.getAllResolvedResults(), cls)) { if (identified.isActivelyPublished()) { candidates.addEquivalent(identified, aliasMatchingScore); desc.appendText("Resolved %s", identified.getCanonicalUri()); generatorComponent.addComponentResult(identified.getId(), aliasMatchingScore.toString()); } } if (resolved.getUnresolved().size() > 0) { desc.appendText("Missed %s", resolved.getUnresolved().size()); } } equivToTelescopeResult.addGeneratorResult(generatorComponent); desc.finishStage(); return candidates.build(); }