public static int getNotFoldedLineEndOffset(@NotNull Editor editor, int offset) {
    return getNotFoldedLineEndOffset(editor, offset, false);
  }
public static int getNotFoldedLineEndOffset(@NotNull Editor editor, int offset)