Attribute attribute = (Attribute)headerValuePart.getParent();
if (USES_DIRECTIVE.equals(attribute.getName()) && !USES_DIRECTIVE.equals(headerValuePart.getUnwrappedText())) {
List<PsiReference> references = ContainerUtil.newArrayList();
for (ASTNode astNode : headerValuePart.getNode().getChildren(TokenSet.create(ManifestTokenType.HEADER_VALUE_PART))) {
if (astNode instanceof ManifestToken) {
ManifestToken manifestToken = (ManifestToken)astNode;
ContainerUtil.addAll(references, getPackageReferences(manifestToken));
}
}
return ContainerUtilRt.toArray(references, new PsiReference[references.size()]);
}