Icon of Files application are changed to PyCharm Icon

Sometimes taskbar icon of Files are changed to PyCharm icon. Here is an example of Files opened at my root directory. Instead of a folder icon I see Pycharm icon. It is a confusion I want to avoid.

How can I resolve this issue?

Among three PyCharm icons - the left most one is actual PyCharm, and the two right next to it are Files application.