boolean (@NotNull final PyStringLiteralExpression expression, final int offset) { List<PyStringFormatParser.SubstitutionChunk> substitutions = PyStringFormatParser.filterSubstitutions( PyStringFormatParser.parsePercentFormat(expression.getStringValue())); return isInsideSubstitutionChunk(offset, substitutions); }