Select the part you want to hide and press ctrl + alt + T. Choose either
//<editor-fold desc="Description"> // part to hide //</editor-fold>
or
//region Description // part to hide //endregion
Change Description to something that will not distract you, for example _ .
After collapsing this block, you will see only _ .
Vitaly zinchenko
source share