How can I get list of all modules in current JVM instance via Java code? Is it possible? If yes, then how?
ModuleLayer.boot().modules().stream() .map(Module::getName) .forEach(System.out::println);