PyType (PyTargetExpressionImpl targetExpression) { String docComment = DocStringUtil.getAttributeDocComment(targetExpression); if (docComment != null) { StructuredDocString structuredDocString = DocStringUtil.parse(docComment, targetExpression); String typeName = structuredDocString.getParamType(null); if (typeName == null) { typeName = structuredDocString.getParamType(targetExpression.getName()); } if (typeName != null) { return PyTypeParser.getTypeByName(targetExpression, typeName); } } return null; }