private static void putClasses(final List<File> classes, final File directory) {
        for (final File file : directory.listFiles()) {
            if (file.isDirectory()) {
                putClasses(classes, file);
            } else if (file.toString().endsWith(".class")) {
                classes.add(file);
            }
        }
    }