LinkedHashSet<CompletionResult> (CompletionParameters parameters, final boolean passResult) { final LinkedHashSet<CompletionResult> elements = new LinkedHashSet<>(); runRemainingContributors(parameters, result -> { if (passResult) { passResult(result); } elements.add(result); }); return elements; }