List<PsiElement> (@NotNull String name, @NotNull ScopeOwner scopeOwner, @NotNull ReadWriteInstruction.ACCESS type) { return StreamEx .of(ControlFlowCache.getControlFlow(scopeOwner).getInstructions()) .select(ReadWriteInstruction.class) .filter(i -> name.equals(i.getName()) && type == i.getAccess()) .map(ReadWriteInstruction::getElement) .nonNull() .toImmutableList(); }