String uri = str.substring(textRange.getStartOffset(), textRange.getEndOffset());
int start = textRange.getStartOffset();
int len = textRange.getLength();
if (widgetfile != null) {
PsiReference ref = new FileReference(widgetfile, uri, element,
new TextRange(start, start + len), project, protectedPathDir, protectedPathDir);
return new PsiReference[]{ref};
}
return PsiReference.EMPTY_ARRAY;
}