@Override
  public void update(@NotNull AnActionEvent e) {
    final String pathForClasses = myArtifactEditor.getArtifact().getArtifactType().getDefaultPathFor(PackagingElementOutputKind.DIRECTORIES_WITH_CLASSES);
    final Presentation presentation = e.getPresentation();
    if (onlyJarsSelected() && pathForClasses != null) {
      presentation.setText(JavaUiBundle.message("action.text.extract.source.item.into.0", getTargetLocationText(Collections.singleton(pathForClasses))));
      presentation.setVisible(true);
    }
    else {
      presentation.setVisible(false);
    }
  }
@Override
  public void update(@NotNull AnActionEvent e)