boolean (@NotNull PsiExpression expression, @NotNull List<? extends PsiVariable> variables) { for (PsiVariable variable : variables) { if (VariableAccessUtils.variableIsUsed(variable, expression)) return true; } return false; }