class Test {
  protected <T extends java.util.List<K>, K> void applyChanges(final T variable) {
                 new Runnable() {
                     @Override
                     public void run() {
                         <selection>System.out.println(variable);</selection>
                     }
                 }
         ;
     }
}