void (@NotNull PsiInstanceOfExpression instanceofExpression, boolean ignoreClarifyingParentheses) { final PsiExpression operand = instanceofExpression.getOperand(); removeParentheses(operand, ignoreClarifyingParentheses); final PsiPrimaryPattern pattern = instanceofExpression.getPattern(); if (pattern != null) { removeParensFromPattern(pattern, ignoreClarifyingParentheses); } }