PackagingElementPresentation (@NotNull ArtifactEditorContext context) { return new PackagingElementPresentation() { @Override public @NlsContexts.Label String getPresentableName() { return JavaCompilerBundle.message("packaging.element.text.output.root"); } @Override public void render(@NotNull PresentationData presentationData, SimpleTextAttributes mainAttributes, SimpleTextAttributes commentAttributes) { presentationData.setIcon(AllIcons.Nodes.Artifact); presentationData.addText(getPresentableName(), mainAttributes); } @Override public int getWeight() { return 0; } }; }