CompoundBorder (@NotNull Editor editor) { Color borderColor = editor.getColorsScheme().getColor(EditorColors.SELECTED_TEARLINE_COLOR); Border outsideBorder = JBUI.Borders.customLine(borderColor, LINE_BORDER_THICKNESS); Border insideBorder = JBUI.Borders.empty(EMPTY_BORDER_THICKNESS); return BorderFactory.createCompoundBorder(outsideBorder, insideBorder); }