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