private boolean hasPrintedPackageIndex(String pkgname) {
        String[] list = (String[])printedPackageHeaders.toArray(new String[] {});
        for (int i = 0; i < list.length; i++) {
            if (pkgname.startsWith(list[i])) {
                return true;
            }
        }
        return false;
    }