PyType (@Nullable PyType expectedArgumentType, @NotNull PyTypeChecker.GenericSubstitutions substitutions) { return PyTypeChecker.hasGenerics(expectedArgumentType, myTypeEvalContext) ? PyTypeChecker.substitute(expectedArgumentType, substitutions, myTypeEvalContext) : null; }