for (Integer key : list) {
pw.println("Screen of " + KeyEvent.getKeyText(key) + ':');
Stack<Console> stack = stackMap.get(key);
int t_ind = stack.size();
for (int i = t_ind; i-- > 0;) {
Console console = stack.get(i);
String prefix = console == current ? " > " :
i == t_ind - 1 ? " * " : " ";
pw.println(prefix + console.getConsoleName());
}
}
}