void (final @NotNull String path, final @NotNull ArtifactEditorContext context, final @NotNull CompositePackagingElement<?> element) { context.editLayout(context.getArtifact(), () -> { final VirtualFile file = findManifestFile(element, context, context.getArtifactType()); if (file == null || !VfsUtilCore.pathEqualsTo(file, path)) { PackagingElementFactory.getInstance().addFileCopy(element, MANIFEST_DIR_NAME, path, MANIFEST_FILE_NAME, true); } }); }