private static boolean detectLombokJarsSlow(Project project) {
    // it is required for JARs attached directly from disk
    // or via build systems that do not supply Maven coordinates properly via LibraryWithMavenCoordinatesProperties
    return CachedValuesManager.getManager(project).getCachedValue(project, () -> {
      OrderEnumerator orderEnumerator = OrderEnumerator.orderEntries(project);

      Ref<Boolean> exists = new Ref<>(false);
      orderEnumerator.recursively()
        .forEachLibrary(library -> {
          VirtualFile[] libraryFiles = library.getFiles(OrderRootType.CLASSES);
          JarFileSystem jarFileSystem = JarFileSystem.getInstance();

          for (VirtualFile libraryFile : libraryFiles) {
            if (libraryFile.getFileSystem() != jarFileSystem) continue;

            // look into every JAR for top level package entry
            if (libraryFile.findChild("lombok") != null) {
              exists.set(true);
              return false;
            }
          }

          return true;
        });

      return Result.create(exists.get(), ProjectRootManager.getInstance(project));
    });
  }
private static boolean detectLombokJarsSlow(Project project)