private static @NotNull String generateToString(PsiClass psiClass, PsiRecordComponent @NotNull [] components) {
    String toStringExpression = components.length == 0 ? '"' + psiClass.getName() + "[]\"" :
                                '"' +
                                psiClass.getName() +
                                "[\"+\n" +
                                StreamEx.of(components).map(c -> '"' + c.getName() + "=\"+" + c.getName()).joining("+\", \"+\n") +
                                "+']'";
    return "@" + CommonClassNames.JAVA_LANG_OVERRIDE + "\n" +
           "public String toString() {\n" +
           "return " + toStringExpression + ";\n" +
           "}\n";
  }
private static @NotNull String generateToString(PsiClass psiClass, PsiRecordComponent @NotNull [] components)