String (List<AttachToProcessItem> items) { StringBuilder builder = new StringBuilder(); for (AttachToProcessItem each : items) { String title = each.getSeparatorTitle(); if (title != null) builder.append("----").append(title).append("----\n"); builder.append(each.getText(getProject())).append(": ").append(each.getSelectedDebugger().getDebuggerDisplayName()).append("\n"); for (AttachToProcessItem eachSubItem : each.getSubItems()) { builder.append(" ").append(eachSubItem.getSelectedDebugger().getDebuggerDisplayName()).append("\n"); } } return builder.toString(); }