Currently, when looking for implementations of non workspace sources like RuntimeException, we load all information about the classpath. To make if faster we could use https://github.com/classgraph/classgraph Otherwise some hand crafted solution might be needed.