boolean (final String packageFQName) { for (String name : getExcludedPackageNames()) { if (packageFQName.equals(name) || packageFQName.startsWith(name + ".")) return false; } final String[] filteredPackageNames = getFilteredPackageNames(); for (final String packName : filteredPackageNames) { if (packName.isEmpty() || PsiNameHelper.isSubpackageOf(packageFQName, packName)) { return true; } } return filteredPackageNames.length == 0 && getFilteredClassNames().length == 0; }