boolean () { boolean hasNonExpandable = false; for (TemplateContextType type : getApplicableContexts()) { if (type.isExpandableFromEditor()) { return true; } hasNonExpandable = true; } return !hasNonExpandable; }