String (PsiClass aClass) { String descriptionDir = ""; PsiClass each = aClass; while (each != null) { String name = each.getName(); if (StringUtil.isEmptyOrSpaces(name)) { return null; } descriptionDir = name + descriptionDir; each = each.getContainingClass(); } return descriptionDir; }