@Override
public void validateDefinition() throws QuickFixException {
super.validateDefinition();
if (includeRefs == null || includeRefs.isEmpty()) {
throw new InvalidDefinitionException("aura:library must contain at least one aura:include attribute",
getLocation());
}
Set<String> names = Sets.newHashSet();
for (IncludeDefRef include : includeRefs) {
if (!names.add(include.getName())) {
throw new InvalidDefinitionException(String.format("%s with duplicate name found in library: %s",
IncludeDefRefHandler.TAG, include.getName()), getLocation());
}
List<DefDescriptor<IncludeDef>> imports = include.getImports();
if (imports != null) {
for (DefDescriptor<IncludeDef> imported : imports) {