void (@NotNull AnActionEvent e) { final String jarName = suggestJarName(); final String pathForJars = myArtifactEditor.getArtifact().getArtifactType().getDefaultPathFor(PackagingElementOutputKind.JAR_FILES); final Presentation presentation = e.getPresentation(); if (jarName != null && pathForJars != null) { presentation.setText(JavaUiBundle.message("action.text.pack.element.into.0", DeploymentUtil.appendToPath(pathForJars, jarName + ".jar"))); presentation.setVisible(true); } else { presentation.setVisible(false); } }