PsiElement () { final Module module = ModuleUtilCore.findModuleForFile(myFile); if (module == null) { return null; } final PropertiesFile propertiesFile = PropertiesUtilBase.getPropertiesFile(myBundleName, module, null); if (propertiesFile == null) { return null; } IProperty property = propertiesFile.findPropertyByKey(getRangeText()); return property == null ? null : property.getPsiElement(); }