int size = packageName.length() - 1;
if (packageName.charAt(size) == '?') {
packageName = packageName.substring(0, size);
}
PackageReferenceSet referenceSet = new ManifestPackageReferenceSet(packageName, psiElement, offset);
return referenceSet.getReferences().toArray(new PsiPackageReference[referenceSet.getReferences().size()]);
}