import to intellij idea and reformat code