boolean (GrTypeCastExpression expression1, GrTypeCastExpression expression2) { final GrExpression operand1 = expression1.getOperand(); final GrExpression operand2 = expression2.getOperand(); if (!expressionsAreEquivalent(operand1, operand2)) { return false; } final PsiType type1 = expression1.getCastTypeElement().getType(); final PsiType type2 = expression2.getCastTypeElement().getType(); return typesAreEquivalent(type1, type2); }