@Test public void test() { c.doSomethingMethod(); }
public void doSomethingMethod() { List<Integer> l = new ArrayList<>(); something(l); System.out.println(l.size()); }
CollectionWithMethod { public void doSomethingMethod() { List<Integer> l = new ArrayList<>(); something(l); System.out.println(l.size()); } }
CollectionWithMethod { public void doSomethingMethod() { List<Integer> l = new ArrayList<>(); something(l); System.out.println(l.size()); }  }
CollectionWithMethod { public void doSomethingMethod() { List<Integer> l = new ArrayList<>(); something(l); System.out.println(l.size()); }  void doSomethingMethod(); void something(List<Integer> l); }
CollectionWithMethod { public void doSomethingMethod() { List<Integer> l = new ArrayList<>(); something(l); System.out.println(l.size()); }  void doSomethingMethod(); void something(List<Integer> l);  }