PyCharms code reforming