ide: code refactoring for commit f4757534e5f7a6d816c9dacb199e360819ec5c79