Make java code folding more reasonable.