@Override
 public void reset() {
   mySettingsPanel.setStartPattern(myConfiguration.getState().getStartFoldingPattern());
   mySettingsPanel.setEndPattern(myConfiguration.getState().getEndFoldingPattern());
   mySettingsPanel.setEnabled(myConfiguration.getState().isEnabled());
   mySettingsPanel.setCollapsedStatePattern(
       myConfiguration.getState().getDefaultCollapsedStatePattern());
 }
 @Override
 public void apply() throws ConfigurationException {
   myConfiguration.getState().setStartFoldingPattern(mySettingsPanel.getStartPattern());
   myConfiguration.getState().setEndFoldingPattern(mySettingsPanel.getEndPattern());
   myConfiguration.getState().setEnabled(mySettingsPanel.isEnabled());
   myConfiguration
       .getState()
       .setDefaultCollapsedStatePattern(mySettingsPanel.getCollapsedStatePattern());
 }
 @Override
 public boolean isModified() {
   return myConfiguration.getState().isEnabled() != mySettingsPanel.isEnabled()
       || !myConfiguration
           .getState()
           .getStartFoldingPattern()
           .equals(mySettingsPanel.getStartPattern())
       || !myConfiguration
           .getState()
           .getEndFoldingPattern()
           .equals(mySettingsPanel.getEndPattern())
       || !myConfiguration
           .getState()
           .getDefaultCollapsedStatePattern()
           .equals(mySettingsPanel.getCollapsedStatePattern());
 }
 @Override
 public JComponent createComponent() {
   return mySettingsPanel.getComponent();
 }