/** Check the type of the capacity uses. * * @param uses the capacity uses. */ @Check(CheckType.FAST) public void checkCapacityTypeForUses(SarlCapacityUses uses) { for (final JvmParameterizedTypeReference usedType : uses.getCapacities()) { final LightweightTypeReference ref = toLightweightTypeReference(usedType); if (ref != null && !this.inheritanceHelper.isSarlCapacity(ref)) { error(MessageFormat.format( Messages.SARLValidator_57, usedType.getQualifiedName(), Messages.SARLValidator_58, this.grammarAccess.getUsesKeyword()), usedType, null, ValidationMessageAcceptor.INSIGNIFICANT_INDEX, INVALID_CAPACITY_TYPE, usedType.getSimpleName()); } } }