ManifestFileConfiguration (CompositePackagingElement<?> element, ArtifactType artifactType, final PackagingElementResolvingContext context) { final VirtualFile manifestFile = ManifestFileUtil.findManifestFile(element, context, artifactType); if (manifestFile == null) { return null; } ManifestFileConfiguration configuration = myManifestFiles.get(manifestFile); if (configuration == null) { configuration = ManifestFileUtil.createManifestFileConfiguration(manifestFile); myOriginalManifestFiles.put(manifestFile, new ManifestFileConfiguration(configuration)); myManifestFiles.put(manifestFile, configuration); } return configuration; }