Promise<Void> (@NotNull Object service, @NotNull Class<?> contributorClass) { AsyncPromise<Void> result = new AsyncPromise<>(); myModel.getInvoker().invoke(() -> AppUIUtil.invokeLaterIfProjectAlive(myProject, () -> promiseFindView(contributorClass, result, serviceView -> serviceView.extract(service, contributorClass), null))); return result; }