* @param endLineDelim
*/
public static void performArrangeImports(IDocument doc, String endLineDelim, String indentStr) {
List<Tuple3<Integer, String, ImportHandle>> list = new ArrayList<Tuple3<Integer, String, ImportHandle>>();
//Gather imports in a structure we can work on.
PyImportsHandling pyImportsHandling = new PyImportsHandling(doc);
int firstImport = -1;
for (ImportHandle imp : pyImportsHandling) {
list.add(new Tuple3<Integer, String, ImportHandle>(imp.startFoundLine, imp.importFound, imp));
if (firstImport == -1) {