void () { getSettings().ALIGN_CONSECUTIVE_VARIABLE_DECLARATIONS = true; doMethodTest( """ int a = 12; Runnable runnable = new Runnable() { @Override public void run() { System.out.println("AAA!"); } };""", """ int a = 12; Runnable runnable = new Runnable() { @Override public void run() { System.out.println("AAA!"); } };""" ); doMethodTest( """ Runnable runnable = new Runnable() { @Override public void run() { System.out.println("AAA!"); } }; int c = 12;""", """ Runnable runnable = new Runnable() { @Override public void run() { System.out.println("AAA!"); } }; int c = 12;""" ); doMethodTest( """ int ac = 99; Runnable runnable = new Runnable() { @Override public void run() { System.out.println("AAA!"); } }; int c = 12;""", """ int ac = 99; Runnable runnable = new Runnable() { @Override public void run() { System.out.println("AAA!"); } }; int c = 12;""" ); }