boolean (final String sourceRootPackage, final String targetQName) { if (sourceRootPackage == null || !targetQName.startsWith(sourceRootPackage)) return false; if (sourceRootPackage.isEmpty() || targetQName.length() == sourceRootPackage.length()) return true; return targetQName.charAt(sourceRootPackage.length()) == '.'; }