void (Disposable parentDisposable, InspectionsReportConverter reportConverter) { MessageBusConnection applicationBus = ApplicationManager.getApplication().getMessageBus().connect(parentDisposable); applicationBus.subscribe(ProjectManager.TOPIC, new ProjectManagerListener() { @Override public void projectOpened(@NotNull Project project) { subscribeToRootChanges(project, reportConverter); } }); }