boolean (@NotNull PsiTypeCastExpression expression, @NotNull TextRange expressionTextRange, @NotNull PsiExpression occurrence) { ProgressIndicatorProvider.checkCanceled(); final TextRange occurrenceTextRange = occurrence.getTextRange(); return occurrence != expression && occurrenceTextRange.getEndOffset() < expressionTextRange.getStartOffset(); }