private static void insertVersion(@NotNull InsertionContext context,
                                    MavenRepositoryArtifactInfo completionItem,
                                    MavenDomArtifactCoordinates domCoordinates) {
    if (completionItem.getItems().length == 1 && completionItem.getVersion() != null) {
      domCoordinates.getVersion().setStringValue(completionItem.getVersion());
    }
    else {
      domCoordinates.getVersion().setStringValue("");

      int versionPosition = domCoordinates.getVersion().getXmlTag().getValue().getTextRange().getStartOffset();

      context.getEditor().getCaretModel().moveToOffset(versionPosition);

      MavenDependencyCompletionUtil.invokeCompletion(context, CompletionType.BASIC);
    }
  }
private static void insertVersion(@NotNull InsertionContext context,
                                    MavenRepositoryArtifactInfo completionItem,
                                    MavenDomArtifactCoordinates domCoordinates)