void () { doTest(""" class OnlyUsedFromAnonymousWarning { \t public OnlyUsedFromAnonymousWarning() { \t\tRunnable someInterface = new Runnable() { \t\t\t@Override \t\t\tpublic void run() { \t\t\t\tproblemMethod(); \t\t\t} \t\t}; \t\tproblemMethod(); \t} \tprivate static void problemMethod() { \t\tSystem.out.println("Is used not only from anonymous class!"); \t} }"""); }