String () { final List<PackagingSourceItem> items = mySourceItemsTree.getSelectedItems(); for (PackagingSourceItem item : items) { if (item.isProvideElements() && item.getKindOfProducedElements().containsDirectoriesWithClasses()) { return item.createPresentation(myArtifactEditor.getContext()).getPresentableName(); } } return null; }