refactory for java-run-current-file