Checks fields that have any of the attributes [Input], [Output], [InOut], [Local], [InputPort] or [OutputPort], reports a diagnostic if the field is not public.
You can also use the provided automatic Code Fix to make the field public. ( Press Alt + Enter on the Error line to find the Code Fix in the context menu)
Make the field public.
