void (final ProjectStructureProblemsHolder problemsHolder) { final Artifact artifact = myArtifactsStructureContext.getArtifactModel().getArtifactByOriginal(myOriginalArtifact); final ArtifactProblemsHolderImpl artifactProblemsHolder = new ArtifactProblemsHolderImpl(myArtifactsStructureContext, myOriginalArtifact, problemsHolder); if (myArtifactsStructureContext instanceof ArtifactsStructureConfigurableContextImpl) { ArtifactEditorImpl artifactEditor = ((ArtifactsStructureConfigurableContextImpl)myArtifactsStructureContext).getArtifactEditor(artifact); if (artifactEditor != null && (artifactEditor.isModified() || isArtifactModified(artifact))) { ProjectModelExternalSource externalSource = artifact.getExternalSource(); if (externalSource != null) { String message = ModificationOfImportedModelWarningComponent.getWarningText( JavaUiBundle.message("banner.slogan.artifact.0", artifact.getName()), externalSource); artifactProblemsHolder.registerWarning(message, "modification-of-imported-element", null); } } } artifact.getArtifactType().checkRootElement(myArtifactsStructureContext.getRootElement(myOriginalArtifact), artifact, artifactProblemsHolder); }