@NotNull
  public static List<PsiElement> getElementsOfAccessType(@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();
  }
@NotNull
  public static List<PsiElement> getElementsOfAccessType(@NotNull String name,
                                                         @NotNull ScopeOwner scopeOwner,
                                                         @NotNull ReadWriteInstruction.ACCESS type)