Finding all classes for module name (Java 9 and later)

Here the solution:

import java.util.Collection;

import org.burningwave.core.assembler.ComponentContainer;
import org.burningwave.core.assembler.ComponentSupplier;
import org.burningwave.core.classes.ClassCriteria;
import org.burningwave.core.classes.ClassHunter;
import org.burningwave.core.classes.ClassHunter.SearchResult;
import org.burningwave.core.classes.SearchConfig;
import org.burningwave.core.io.PathHelper;

public class Finder {

	public Collection<Class<?>> find() {
		ComponentSupplier componentSupplier = ComponentContainer.getInstance();
		PathHelper pathHelper = componentSupplier.getPathHelper();
		ClassHunter classHunter = componentSupplier.getClassHunter();

		SearchResult searchResult = classHunter.loadInCache(
			SearchConfig.forPaths(
					pathHelper.getMainClassPaths()
			).by(
				ClassCriteria.create().allThat((currentScannedClass) ->
					currentScannedClass.getModule().getName() != null && 
					currentScannedClass.getModule().getName().equals("jdk.xml.dom")
				)
			)
		).find();
		return searchResult.getClasses();
	}
}