Promise<Integer> (@NotNull DependencySearchService service, @NotNull MavenDomShortArtifactCoordinates coordinates, @NotNull CompletionParameters parameters, @NotNull Consumer<RepositoryArtifactData> consumer) { SearchParameters searchParameters = createSearchParameters(parameters); String groupId = trimDummy(coordinates.getGroupId().getStringValue()); String artifactId = trimDummy(coordinates.getArtifactId().getStringValue()); if (MavenAbstractPluginExtensionCompletionContributor.isPluginOrExtension(coordinates) && StringUtil.isEmpty(groupId)) { return MavenAbstractPluginExtensionCompletionContributor .findPluginByArtifactId(service, artifactId, searchParameters, new RepositoryArtifactDataConsumer(artifactId, groupId, consumer)); } return service.suggestPrefix(groupId, artifactId, searchParameters, new RepositoryArtifactDataConsumer(artifactId, groupId, consumer)); }