void (@NotNull final Processor<? super Usage> processor) { ApplicationManager.getApplication().runReadAction(() -> { collectUsages(myModel); for (MavenDomProjectModel model : MavenDomProjectProcessorUtils.getChildrenProjects(myModel)) { collectUsages(model); } for (UsageInfo usage : usages) { processor.process(UsageInfo2UsageAdapter.CONVERTER.fun(usage)); } }); }