class Test {
    {
        UrlClassLoader loader = newMethod();

        System.out.println(loader);
    }

    private UrlClassLoader newMethod() {
        return UrlClassLoader.build().
              useCache(new UrlClassLoader.I() {
                  @Override
                  public void m() {}
              }).get();
    }

    static class UrlClassLoader {
        static UrlClassLoader build() {return new UrlClassLoader();}
        UrlClassLoader useCache(I i) {
            return this;
        }

        interface I {
            void m();
        }

        UrlClassLoader get() {
            return this;
        }
    }
}
@@ -150,22 +150,39 @@
         
-return
+UrlClassLoader loader =
  UrlClas
@@ -198,20 +198,16 @@
 uild().%0A
-    
         
@@ -238,28 +238,24 @@
 oader.I() %7B%0A
-    
             
@@ -280,20 +280,16 @@
         
-    
 public v
@@ -309,20 +309,16 @@
         
-    
 %7D).get()
@@ -315,24 +315,47 @@
   %7D).get();%0A
+        return loader;%0A
     %7D%0A%0A    s

fix test data: extract method from assignment and declaration in a same way