boolean (@NotNull ReadWriteAccessDetector.Access access, @NotNull PsiElement refElement) { return access == ReadWriteAccessDetector.Access.ReadWrite && refElement instanceof PsiExpression && refElement.getParent() instanceof PsiExpression && refElement.getParent().getParent() instanceof PsiExpressionStatement; }