private void checkNotAssignmentExpression(@Nullable PyExpression expression, @NotNull @InspectionMessage String message) {
    if (PyPsiUtils.flattenParens(expression) instanceof PyAssignmentExpression) {
      getHolder()
        .newAnnotation(HighlightSeverity.ERROR, message)
        .range(expression)
        .create();
    }
  }
private void checkNotAssignmentExpression(@Nullable PyExpression expression, @NotNull @InspectionMessage String message)