String (Project project, PropertiesFile aPropertiesFile) { String packageName = PackageIndex.getInstance(project).getPackageNameByDirectory(aPropertiesFile.getVirtualFile().getParent()); if (packageName == null) return null; String bundleName; if (!packageName.isEmpty()) { bundleName = packageName + "." + aPropertiesFile.getResourceBundle().getBaseName(); } else { bundleName = aPropertiesFile.getResourceBundle().getBaseName(); } return bundleName.replace('.', '/'); }