Alarm (@NotNull JComponent component) { PluginException.reportDeprecatedUsage("Alarm#setActivationComponent", "Please use `#Alarm(JComponent, Disposable)` instead"); ThreadingAssertions.assertEventDispatchThread(); myActivationComponent = component; //noinspection ResultOfObjectAllocationIgnored UiNotifyConnector.installOn(component, new Activatable() { @Override public void showNotify() { flushPending(); } }); return this; }