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