AnAction (final ArtifactEditorEx artifactEditor) { return new ExtractArtifactAction(artifactEditor) { @Override protected IExtractArtifactDialog showDialog(LayoutTreeComponent treeComponent, final String initialName) { return new IExtractArtifactDialog() { @Override public String getArtifactName() { return initialName; } @Override public ArtifactType getArtifactType() { return PlainArtifactType.getInstance(); } }; } }; }