ModifiableArtifactModel () { return ReadAction.compute(() -> { ArtifactManager artifactManager = ArtifactManager.getInstance(myProject); return artifactManager != null ? artifactManager.createModifiableModel() : new DummyArtifactModel(); }); }