PsiElement () { final Module module = ModuleUtilCore.findModuleForFile(myFile); if (module == null) { return null; } final VirtualFile formFile = ResourceFileUtil.findResourceFileInDependents(module, getRangeText()); if (formFile == null) { return null; } return myFile.getManager().findFile(formFile); }