boolean (PsiTypeCastExpression typeCast, PsiExpression castOperand, @NotNull PsiType lType) { if (castOperand instanceof PsiFunctionalExpression) { final PsiTypeElement typeElement = typeCast.getCastType(); final PsiType castType = typeElement != null ? typeElement.getType() : null; return lType.equals(castType); } return true; }