String (Object value) { if (value instanceof PsiType) { if (value instanceof PsiArrayType) { return "class " + ClassUtil.getClassObjectPresentation((PsiType)value); } PsiClass psiClass = PsiUtil.resolveClassInType((PsiType)value); String prefix = psiClass == null ? "" : psiClass.isInterface() ? "interface " : "class "; return prefix + ((PsiType)value).getCanonicalText(); } else { return value.toString(); } }