PyType (@NotNull PsiElement element, @NotNull Context context) { if (!(element instanceof PySubscriptionExpression subscriptionExpr)) return null; final var operand = subscriptionExpr.getOperand(); final var operandNames = resolveToQualifiedNames(operand, context.myContext); if (!operandNames.contains(TYPING_CONCATENATE) && !operandNames.contains(TYPING_EXTENSIONS_CONCATENATE)) return null; final var parameters = getConcatenateParametersTypes(subscriptionExpr, context.myContext); if (parameters == null) return null; return new PyConcatenateType(parameters.first, parameters.second); }