void (@NotNull EditorEx editor, @NotNull FoldingModelSupport foldingSupport) { assert foldingSupport.getCount() == 1; IntPredicate foldingLinePredicate = foldingSupport.hideLineNumberPredicate(0); editor.getGutter().setLineNumberConverter(new DiffLineNumberConverter(foldingLinePredicate, null)); }