void (@NotNull DataContext dataContext) { ComponentPasteFactory factory = myDesigner.createPasteFactory(getSerializedComponentData()); if (factory != null) { myDesigner.getToolProvider().setActiveTool(new PasteTool(true, factory)); } }