String (@NotNull PsiClass psiClass) { final StringBuilder psiClassName = new StringBuilder(); PsiClass containingClass = psiClass; do { if (!psiClassName.isEmpty()) { psiClassName.insert(0, '.'); } psiClassName.insert(0, containingClass.getName()); containingClass = containingClass.getContainingClass(); } while (null != containingClass); return psiClassName.toString(); }