void (@NotNull CompletionParameters parameters, @NotNull CompletionResultSet result) { if (parameters.getCompletionType() != CompletionType.BASIC) return; PlaceChecker placeChecker = new PlaceChecker(parameters).checkPlace(); if (placeChecker.isCorrectPlace()) { MavenDomShortArtifactCoordinates coordinates = placeChecker.getCoordinates(); String completionPrefix = CompletionUtil.findReferenceOrAlphanumericPrefix(parameters); result = amendResultSet(result); ConcurrentLinkedDeque<RepositoryArtifactData> cld = new ConcurrentLinkedDeque<>(); Promise<Integer> promise = find( DependencySearchService.getInstance(placeChecker.getProject()), coordinates, parameters, mdci -> cld.add(mdci) ); fillResults(result, coordinates, cld, promise, completionPrefix); fillAfter(result); } }