/** Check the container for the SARL skills. * * @param skill the skill. */ @Check public void checkContainerType(SarlSkill skill) { final XtendTypeDeclaration declaringType = skill.getDeclaringType(); if (declaringType != null) { final String name = canonicalName(declaringType); assert name != null; error(MessageFormat.format(Messages.SARLValidator_31, name), skill, null, INVALID_NESTED_DEFINITION); } }