void (@NotNull JComponent component, @NotNull DataProvider dataProvider) { DataProvider prev = DataManager.getDataProvider(component); DataProvider result = dataProvider; if (prev != null) { DataManager.removeDataProvider(component); result = CompositeDataProvider.compose(prev, dataProvider); } DataManager.registerDataProvider(component, result); }