boolean (AntDomTypeDef typedef) { final String generalError = myTypeDefErrors.get(typedef); if (generalError != null) { return true; } return StreamEx.ofKeys(myDeclarations, typedef::equals).anyMatch(name -> lookupError(name) != null); }