@Override
  protected void doOKAction() {
    final String artifactName = getArtifactName();
    if (myContext.getArtifactModel().findArtifact(artifactName) != null) {
      Messages.showErrorDialog(myContext.getProject(), JavaUiBundle.message("dialog.message.artifact.0.already.exists", artifactName), CommonBundle.getErrorTitle());
      return;
    }
    super.doOKAction();
  }
@Override
  protected void doOKAction()