boolean (@NotNull ExtractableExpressionPart part) { if (myVariable != null && myVariable.equals(part.myVariable)) { return true; } if (myValue != null && myValue.equals(part.myValue)) { return true; } PsiExpression usage1 = PsiUtil.skipParenthesizedExprDown(myUsage); PsiExpression usage2 = PsiUtil.skipParenthesizedExprDown(part.myUsage); return usage1 != null && usage2 != null && JavaPsiEquivalenceUtil.areExpressionsEquivalent(usage1, usage2); }