PyFunctionTypeAnnotation (@NotNull PyFunction function) { final String comment = function.getTypeCommentAnnotation(); if (comment == null) { return null; } final PyFunctionTypeAnnotationFile file = CachedValuesManager.getCachedValue(function, () -> CachedValueProvider.Result.create(new PyFunctionTypeAnnotationFile(function.getTypeCommentAnnotation(), function), function)); return file.getAnnotation(); }