try {
String relativePath = protectedPath + "/" + searchString + ".php";
VirtualFile viewfile = project.getBaseDir().findFileByRelativePath(relativePath);
if (viewfile != null) {
PsiReference ref = new I18nFileReference(
viewfile,
element,
element.getTextRange(),
project);
return new PsiReference[]{ref};