for (int j = 0; cmds != null && j < cmds.length; j++) {
Completor[] comps = beeLine.commandHandlers[i].getParameterCompletors();
List<Completor> compl = new LinkedList<Completor>();
compl.add(new SimpleCompletor(BeeLine.COMMAND_PREFIX + cmds[j]));
compl.addAll(Arrays.asList(comps));
compl.add(new NullCompletor()); // last param no complete
completors.add(new ArgumentCompletor(
compl.toArray(new Completor[0])));
}
}
setCompletors(completors.toArray(new Completor[0]));