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