boolean (final Project object, final Processor<Object> processor) { return ReadAction.compute(() -> { for (Module module : ModuleManager.getInstance(object).getModules()) { if (!ModuleType.isInternal(module) && !processor.process(module)) return false; } return true; }); }