IntPair (@NotNull Editor editor) { EditorGutterComponentEx gutter = ((EditorEx)editor).getGutterComponentEx(); int x = 1; // leave 1px for brace highlighters if (ExperimentalUI.isNewUI()) { x += gutter.getExtraLineMarkerFreePaintersAreaOffset(); x += 2; //IDEA-286352 return new IntPair(x, x + (int)(JBUIScale.scale(JBUI.getInt("Gutter.VcsChanges.width", 4) * getEditorScale(editor)))); } else { x += gutter.getLineMarkerFreePaintersAreaOffset(); } int endX = gutter.getWhitespaceSeparatorOffset(); return new IntPair(x, endX); }