@Override
    public boolean isExcludedPackage(@NotNull String packageName) {
        if (!includedPackages.isEmpty()) {
            boolean included = false;
            for (String includedPackage : includedPackages) {
                if (packageName.startsWith(includedPackage)) {
                    included = true;
                    break;
                }
            }
            if (!included) {
                return true;
            }
        }
        if (!excludedPackages.isEmpty()) {
            for (String excludedPackage : excludedPackages) {
                if (packageName.startsWith(excludedPackage)) {
                    return true;
                }
            }
        }
        return false;
    }
{@code DefaultConfiguration} is a simple implementation of the {@link Configuration} interface.

@author tiwe
querydsl-apt/src/main/java/com/querydsl/apt/DefaultConfiguration.java