`ScalaBundleJarsRegex.patterm.matcher(b.getSymbolicName()).matches` is then the only solution I know.