add no-dev option to licenses command

For us it is more usefull to get the list of no dev requires. So i add the option to the command.
missing visibility (should be private) and missing typehints

and the private method should be placed after protected ones