Improved API around classpath scanning