private static void fold(@NotNull IProperty property, @NotNull List<? super FoldingDescriptor> result) {
    ProgressManager.getInstance().executeProcessUnderProgress(() ->
    ReferencesSearch.search(property.getPsiElement()).forEach((PsiReference reference) -> !tryToFoldReference(reference, property, result)),
      getOrCreateIndicator());
  }
private static void fold(@NotNull IProperty property, @NotNull List<? super FoldingDescriptor> result)