String (Project project) { PsiPackage root = JavaPsiFacade.getInstance(project).findPackage(""); if (root == null) return null; String name = getBasePackage(root, GlobalSearchScope.projectScope(project)).getQualifiedName(); return StringUtil.isEmpty(name) ? null : name; }