void () { myVisibilityInspection.SUGGEST_PACKAGE_LOCAL_FOR_MEMBERS = false; myVisibilityInspection.SUGGEST_PRIVATE_FOR_INNERS = false; doTest(""" class C { { new Runnable() { @Override public void run() { isDisposed = true; } boolean isVisible() { return true; } boolean isDisposed; }.run(); } }"""); }