Ref<PyType> (@NotNull PsiElement resolved, @NotNull Context context) { if (resolved instanceof PyTargetExpression referenceExpression) { Collection<String> operandNames = resolveToQualifiedNames(referenceExpression, context.getTypeContext()); if (ContainerUtil.exists(operandNames, name -> name.equals(LITERALSTRING) || name.equals(LITERALSTRING_EXT))) { return Ref.create(PyLiteralStringType.Companion.create(resolved)); } } return null; }