void () { // Inspired by IDEA-65987 doMethodTest( """ foo("long string as the first argument", new Runnable() { public void run() { \s } \s }, \s new Runnable() { \s public void run() { \s } \s } \s ); \s""", """ foo("long string as the first argument", new Runnable() { public void run() { } }, new Runnable() { public void run() { } } );""" ); doMethodTest( """ foo(1, 2, new Runnable() { @Override public void run() { } });""", """ foo(1, 2, new Runnable() { @Override public void run() { } });""" ); doMethodTest( """ foo(new Runnable() { @Override public void run() { } }, new Runnable() { @Override public void run() { } });""", """ foo(new Runnable() { @Override public void run() { } }, new Runnable() { @Override public void run() { } });""" ); }