private static boolean isReadWriteAccessibleElements(PsiElement @NotNull [] primaryElements, @NotNull ReadWriteAccessDetector detector) {
    for (PsiElement element : primaryElements) {
      if (!detector.isReadWriteAccessible(element)) return false;
    }
    return true;
  }
private static boolean isReadWriteAccessibleElements(PsiElement @NotNull [] primaryElements, @NotNull ReadWriteAccessDetector detector)