Predicate<Color> (@NotNull EditorEx editor) { Color background1 = editor.getBackgroundColor(); Color background2 = editor.getGutterComponentEx().getBackground(); return color -> color != background1 && color != background2; }