public static String parseFile(String f, int cursor, ClasspathScanner cps) {
String res = "";
JavaAutocomplete jac = new JavaAutocomplete(cps);
List<String> ret = jac.doAutocomplete(f, cursor);
for(String s : ret ) {
res += s + " ";
}
return res.trim();