void (PsiTypeCastExpression castExpression, @NotNull PsiType opType, PsiType expectedTypeByParent) { PsiTypeElement castElement = castExpression.getCastType(); if (castElement != null && TypeConversionUtil.isAssignable(castElement.getType(), opType, false) && (expectedTypeByParent == null || TypeConversionUtil.isAssignable(expectedTypeByParent, opType, false))) { addToResults(castExpression); } }