How to use Dock icon as a singleton

I am using Ubuntu18. Here is my Dock icon. After IDEA is added to the collection, there is the fifth icon from the left, then click to open the app, and another one appears on the right. How can it be opened as an icon like the previous Chrome? (Chrome has also been added to the collection)

here is the IDEA shortcut I created myself

-sharp ~/.local/share/applications/idea.desktop

[Desktop Entry]
Version=2018.1.4
Name=IntelliJ IDEA
Exec=/usr/local/jetbrains/idea/bin/idea.sh
Terminal=false
Icon=/usr/local/jetbrains/idea/bin/idea.png
Type=Application
Categories=Development
Mar.18,2021
Menu