void (ObservableStateListener.PropertyChangeEvent event) { Object newValue = event.getNewValue(); if (!(newValue instanceof Boolean)) { LOG.error("newValue is not Boolean. property name = " + event.getPropertyName() + ", newValue = " + newValue); return; } mouseDragHandler.setNativeSelectionEnabled((boolean)newValue); getScrollPane().setInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null); JBScrollPane pane = ObjectUtils.tryCast(getScrollPane(), JBScrollPane.class); JComponent component = pane == null ? null : pane.getStatusComponent(); if (component != null) component.setVisible(!isOneLineMode()); reinitSettings(); Object oldValue = extractOldValueOrLog(event, false); myPropertyChangeSupport.firePropertyChange(PROP_ONE_LINE_MODE, oldValue, event.getNewValue()); }