Revert "Rework list implementation using closures instead of private methods."
Revert "Rework list implementation using closures instead of private methods."

This reverts commit ce50534d2c1a5e77569b8691f0b9bf78f0b1cba6.

skpal/sdkman-cli,GsusRecovery/sdkman-cli,sdkman/sdkman-cli,busches/gvm-cli,skpal/sdkman-cli,gvmtool/gvm-cli,GsusRecovery/sdkman-cli,jbovet/gvm,nobeans/gvm-cli,nobeans/gvm-cli,DealerDotCom/gvm-cli,DealerDotCom/gvm-cli,shanman190/sdkman-cli