Preliminary implementation of task 681.

Issue URL: https://github.com/yegor256/rultor/issues/681
no need to extract this code to separate method if it is used only ones