String (@Nullable PsiType type) { if (type == null) return null; return type.getCanonicalText().replaceAll("<.*?>", ""); // workaround //TODO https://youtrack.jetbrains.com/issue/KT-25024 //PsiClass psiClass = getTypePsiClass(type); //if (psiClass == null) return null; //return psiClass.getQualifiedName(); }