ProjectStructureElement () { PackagingElement<?> packagingElement = myLayoutTreeComponent.getSelection().getElementIfSingle(); if (packagingElement == null) return null; return ArtifactProjectStructureElement.getProjectStructureElementFor(packagingElement, getContext(), myArtifactContext); }