String (final PsiFile psiFile) { PsiDirectory directory = ReadAction.compute(() -> psiFile.getParent()); if (directory == null) return null; String packageQualifiedName = PropertiesUtil.getPackageQualifiedName(directory); if (packageQualifiedName == null) return null; StringBuilder qName = new StringBuilder(packageQualifiedName); if (qName.length() > 0) qName.append("."); qName.append(ResourceBundleManager.getInstance(psiFile.getProject()).getBaseName(psiFile)); return qName.toString(); }