private @Nullable List<FoldingDescriptor> createDescriptors(@NotNull PsiElement classRBrace,
                                                              int rangeStart,
                                                              int rangeEnd,
                                                              @NotNull String header,
                                                              @NotNull String footer) {
    if (rangeStart >= rangeEnd) return null;

    FoldingGroup group = FoldingGroup.newGroup("lambda");
    List<FoldingDescriptor> foldElements = new ArrayList<>();
    foldElements.add(new FoldingDescriptor(myNewExpression.getNode(), new TextRange(getClosureStartOffset(), rangeStart), group, header,
                                           JavaCodeFoldingSettings.getInstance().isCollapseLambdas(), Collections.emptySet()));
    if (rangeEnd + 1 < getClosureEndOffset()) {
      foldElements.add(new FoldingDescriptor(classRBrace.getNode(), new TextRange(rangeEnd, getClosureEndOffset()), group, footer,
                                             JavaCodeFoldingSettings.getInstance().isCollapseLambdas(), Collections.emptySet()));
    }
    return foldElements;
  }
private @Nullable List<FoldingDescriptor> createDescriptors(@NotNull PsiElement classRBrace,
                                                              int rangeStart,
                                                              int rangeEnd,
                                                              @NotNull String header,
                                                              @NotNull String footer)