void () { ApplicationManager.getApplication().getMessageBus() .connect(this) .subscribe(AdvancedSettingsChangeListener.TOPIC, new AdvancedSettingsChangeListener() { @Override public void advancedSettingChanged(@NotNull String id, @NotNull Object oldValue, @NotNull Object newValue) { if ("gradle.download.sources".equals(id) && newValue instanceof Boolean) { isDownloadSources = (boolean)newValue; } } }); }