void (final ProjectStructureElement element, final boolean check, final boolean collectUsages) { if (myStopped.get()) return; if (check) { doCheck(element); } if (collectUsages) { doCollectUsages(element); } }