boolean (@NotNull PsiExpression qualifier, @NotNull PsiExpression expression) { if (!qualifier.isValid() || qualifier.getText() == null) { return false; } return !(expression.getParent() instanceof PsiExpressionStatement) && !PsiUtil.isAccessedForWriting(expression); }