boolean (@NotNull PyNamedParameter parameter) { final PyFunction pyFunction = PsiTreeUtil.getParentOfType(parameter, PyFunction.class); if (pyFunction != null) { final StructuredDocString structuredDocString = pyFunction.getStructuredDocString(); if (structuredDocString == null) { return false; } final Substring typeSub = structuredDocString.getParamTypeSubstring(StringUtil.notNullize(parameter.getName())); return typeSub != null && !typeSub.isEmpty(); } return false; }