Ref<PyType> (@NotNull PyNamedParameter parameter, @NotNull PyFunction function, @NotNull TypeEvalContext context) { if (isApplicable(function)) { final String name = parameter.getName(); if (name != null) { final PyType type = getParameterType(function, name); if (type != null) { return Ref.create(type); } } } return null; }