boolean (@NotNull PyFunction function) { final StructuredDocString structuredDocString = function.getStructuredDocString(); return structuredDocString != null && structuredDocString.getReturnType() != null; }