String (boolean annotated) { String cached = annotated ? myCanonicalTextAnnotated : myCanonicalText; if (cached == null) { cached = getText(TextType.CANONICAL, annotated); if (annotated) myCanonicalTextAnnotated = cached; else myCanonicalText = cached; } return cached; }