add search function and format source code by IDEA