Supplier<List<String>> (@NotNull Module module) { return () -> ReadAction.compute(() -> { return JBIterable.of(OrderEnumerator.orderEntries(module).withoutSdk().withoutLibraries().getClassesRoots()) .filterMap(file -> file.isDirectory() && !file.getFileSystem().isReadOnly() ? file.getPath() : null) .toList(); }); }