void (boolean val) { if (val) { disposeErrorPanel(); MyErrorPanel panel = new MyErrorPanel(); myEditor.getVerticalScrollBar().setPersistentUI(panel); } else { myEditor.getVerticalScrollBar().setPersistentUI(JBScrollBar.createUI(null)); } myErrorStripeMarkersModel.setActive(val); }