boolean (GrSafeCastExpression expression1, GrSafeCastExpression expression2) { final GrExpression operand1 = expression1.getOperand(); final GrExpression operand2 = expression2.getOperand(); if (!expressionsAreEquivalent(operand1, operand2)) { return false; } final GrTypeElement typeElement1 = expression1.getCastTypeElement(); final GrTypeElement typeElement2 = expression2.getCastTypeElement(); final PsiType safe1 = typeElement1 == null ? null : typeElement1.getType(); final PsiType safe2 = typeElement2 == null ? null : typeElement2.getType(); return typesAreEquivalent(safe1, safe2); }