private boolean isEnabled(final AnnotatedNode node) { if (node == null) return false; List<AnnotationNode> annotations = node.getAnnotations(MY_TYPE); if (annotations != null) { // any explicit false for enabled disables functionality // this allows, for example, configscript to set all // classes to true and one class to be explicitly disabled for (AnnotationNode anno : annotations) { // abort if explicit false found if (memberHasValue(anno, "enabled", false)) return false; } } return true; }