private static boolean isToggleNodeModified(MyToggleTreeNode childNode, final CodeStyleSettings settings) {
    try {
      BooleanOptionKey key = (BooleanOptionKey)childNode.getKey();
      return childNode.isSelected() != key.getValue(settings);
    }
    catch (IllegalArgumentException | IllegalAccessException e) {
      LOG.error(e);
    }
    return false;
  }
private static boolean isToggleNodeModified(MyToggleTreeNode childNode, final CodeStyleSettings settings)