void (@NotNull JComponent component, @NotNull DataProvider provider) { if (component instanceof DataProvider) { LOG.warn(String.format("Registering CLIENT_PROPERTY_DATA_PROVIDER on component implementing DataProvider. " + "The key will be ignored. Component: %s", component), new Throwable()); } Object oldProvider = component.getClientProperty(CLIENT_PROPERTY_DATA_PROVIDER); if (oldProvider != null) { LOG.warn(String.format("Overwriting an existing CLIENT_PROPERTY_DATA_PROVIDER. " + "Component: %s, old provider: %s, new provider: %s", component, oldProvider, provider), new Throwable()); } component.putClientProperty(CLIENT_PROPERTY_DATA_PROVIDER, provider); }