Pycharm refactoring