String (@NotNull Project project, @NotNull GeneralTroubleInfoCollector @NotNull... collectors) { StringBuilder builder = new StringBuilder(); for (GeneralTroubleInfoCollector collector : collectors) { builder.append("=== ").append(collector.getTitle()).append(" ===\n"); builder.append(collector.collectInfo(project).trim()); builder.append("\n\n"); } return builder.toString(); }