boolean () { return myModules.stream() .flatMap(module -> module.getSourceRoots().stream()) .anyMatch(sourceRoot -> sourceRoot instanceof JavaModuleSourceRoot && ((JavaModuleSourceRoot)sourceRoot).isWithModuleInfoFile()); }