OccurrencesInfo (Project project, PsiExpression expr) { final PsiElement anchorStatement = getAnchor(expr); PsiElement tempContainer = checkAnchorStatement(project, null, anchorStatement); final ExpressionOccurrenceManager occurrenceManager = createOccurrenceManager(expr, tempContainer); final PsiExpression[] occurrences = occurrenceManager.getOccurrences(); return new OccurrencesInfo(occurrences); }