String (@Nullable PsiElement anchor, @NotNull String type) { final PyType pyType = PyTypeParser.getTypeByName(anchor, type, myTypeEvalContext); if (pyType instanceof PyClassType) { return ((PyClassType)pyType).getPyClass().getQualifiedName(); } if (pyType != null) { return getPrintableName(pyType); } else { return type; } }