Fix for PMD warnings in DesktopModel