Disable Android Studio warning: "Access can be ..."
<p>After an update of Android Studio I get warnings on fields like:</p>

<pre><code>public int ex1 = 0;
int ex2 = 0;
</code></pre>

<p>or methods or nested classes
when they are used only in one class or in the package:</p>

<p>"Access can be private" or "Access can be package-only"</p>

<p>This is can be, and I don't want these warnings but I cannot find how I can deactivate them. Any ideas?</p>