public FilenameFilter builderFile() {
		return new FilenameFilter() {
			private String[] exts = { ".class", ".png" };

			public boolean accept(File dir, String name) {				
				File f = new File(dir, name);				
				if (dir == root) {	
					if (f.toString().indexOf("_ignore") != -1)
						return false;
					if (f.isDirectory() && settings.get("allow.root.dirs")) {
						return true;
					} else if (f.isFile() && settings.get("allow.root.files")) {
						return check(name);
					}
				} else {
					if (f.isDirectory())
						return true;
					else
						return check(name);
				}
				return false;
			}

			public boolean check(String name) {
				for (String ext : exts) {
					if (name.endsWith(ext))
						return true;
				}
				return false;
			}
		};
	}