private static boolean isFoldingsInitializedInEditor(@NotNull Editor editor) {
    return Boolean.TRUE.equals(editor.getUserData(FOLDING_STATE_KEY));
  }
private static boolean isFoldingsInitializedInEditor(@NotNull Editor editor)