boolean (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; }