IExtractArtifactDialog (LayoutTreeComponent treeComponent, final String initialName) { return new IExtractArtifactDialog() { @Override public String getArtifactName() { return initialName; } @Override public ArtifactType getArtifactType() { return PlainArtifactType.getInstance(); } }; }