PsiExpression[] () { if(myOccurrences == null) { myOccurrences = findOccurrences(); if(myFilter != null) { List<PsiExpression> result = new ArrayList<>(); for (PsiExpression occurrence : myOccurrences) { if (myFilter.isOK(occurrence)) result.add(occurrence); } if (result.isEmpty()) { myOccurrences = defaultOccurrences(); } else { myOccurrences = result.toArray(PsiExpression.EMPTY_ARRAY); } } if (getAnchorStatementForAll() == null) { myOccurrences = defaultOccurrences(); } } return myOccurrences; }