void (final ProjectStructureElement element) { final ProjectStructureProblemsHolderImpl problemsHolder = new ProjectStructureProblemsHolderImpl(); ReadAction.run(() -> { if (myStopped.get()) return; if (LOG.isDebugEnabled()) { LOG.debug("checking " + element); } ProjectStructureValidator.check(element, problemsHolder); }); myResultsUpdateQueue.queue(new ProblemsComputedUpdate(element, problemsHolder)); }