void (TextBuffer buffer, boolean addSeparator) { List<String> imports = packImports(); for (String line : imports) { buffer.append("import ").append(line).append(';').appendLineSeparator(); } if (addSeparator && !imports.isEmpty()) { buffer.appendLineSeparator(); } }