List<PsiMethodCallExpression> (@NotNull PsiVariable fileVar, @NotNull PsiElement scope) { Collection<PsiMethodCallExpression> calls = ReferencesSearch.search(fileVar, new LocalSearchScope(scope)) .filtering(ref -> scope == findScope(ref.getElement())) .mapping(ref -> ObjectUtils.tryCast(ref, PsiReferenceExpression.class)) .mapping(ref -> ref == null ? null : ExpressionUtils.getCallForQualifier(ref)) .filtering(FILE_ATTR_CALL_MATCHER) .findAll(); return new ArrayList<>(calls); }