void (DebuggerSession session, final int type, final String text) { List<String> messages = myMessages.get(type); if (messages == null) { messages = new SmartList<>(); myMessages.put(type, messages); } messages.add(session.getSessionName() + ": " + text + ";"); }