void (@NotNull InsertionContext context, MavenRepositoryArtifactInfo completionItem, XmlFile contextFile, MavenDomShortArtifactCoordinates domCoordinates) { domCoordinates.getArtifactId().setStringValue(completionItem.getArtifactId()); XmlTag tag = domCoordinates.getGroupId().getXmlTag(); if (tag == null) { domCoordinates.getGroupId().setStringValue(""); } int position = domCoordinates.getGroupId().getXmlTag().getValue().getTextRange().getStartOffset(); context.getEditor().getCaretModel().moveToOffset(position); MavenDependencyCompletionUtil.invokeCompletion(context, CompletionType.BASIC); }