boolean (PsiExpression exp, PsiMethod method) { if (exp == null) { return false; } if (exp instanceof PsiMethodCallExpression) { return methodCallExpressionDefinitelyRecurses( (PsiMethodCallExpression)exp, method); } if (exp instanceof PsiNewExpression) { return newExpressionDefinitelyRecurses( (PsiNewExpression)exp, method); } if (exp instanceof PsiAssignmentExpression) { return assignmentExpressionDefinitelyRecurses( (PsiAssignmentExpression)exp, method); } if (exp instanceof PsiArrayInitializerExpression) { return arrayInitializerExpressionDefinitelyRecurses( (PsiArrayInitializerExpression)exp, method); } if (exp instanceof PsiTypeCastExpression) { return typeCastExpressionDefinitelyRecurses( (PsiTypeCastExpression)exp, method); } if (exp instanceof PsiArrayAccessExpression) { return arrayAccessExpressionDefinitelyRecurses( (PsiArrayAccessExpression)exp, method); } if (exp instanceof PsiUnaryExpression) { return unaryExpressionDefinitelyRecurses( (PsiUnaryExpression)exp, method); } if (exp instanceof PsiBinaryExpression) { return binaryExpressionDefinitelyRecurses( (PsiBinaryExpression)exp, method); } if (exp instanceof PsiInstanceOfExpression) { return instanceOfExpressionDefinitelyRecurses( (PsiInstanceOfExpression)exp, method); } if (exp instanceof PsiConditionalExpression) { return conditionalExpressionDefinitelyRecurses( (PsiConditionalExpression)exp, method); } if (exp instanceof PsiParenthesizedExpression) { return parenthesizedExpressionDefinitelyRecurses( (PsiParenthesizedExpression)exp, method); } if (exp instanceof PsiReferenceExpression) { return referenceExpressionDefinitelyRecurses( (PsiReferenceExpression)exp, method); } return false; }