boolean (@Nullable PsiExpression expression, @NotNull PsiExpression switchExpression) { if (expression == null) return false; final PsiExpression localSwitchExpression = findPatternSwitchExpression(expression); return EquivalenceChecker.getCanonicalPsiEquivalence().expressionsAreEquivalent(localSwitchExpression, switchExpression); }