KT-3945 Fixed - Prohibit modifiers for packages
Minor refactorings in DeclarationResolver