Best way is to use command line tools .
In the intelliJ IDE, paste the below command:
find . -name "*.java" -exec perl -pi -e 's/\/\*[\s\S]*?\*\/|(?<!:)\/\/.*//g' {} +