Fixed the general java block folding issue where region was not
correctly selected.