IntelliJ is simply visualizing the information it gets from git. In this case, that means that git has found a conflict; left and right have both edited the same line and git cannot automatically merge them. You will have to do this manually either way, and IntelliJ is only trying to help you.
To keep both changes, first click the >>
button on the left side (and watch IntelliJ insert the changes in the middle) and then click the <<
button on the right side (or the other way around, in whatever order you want the changes to be). You can also copy and paste from the left/right files to the middle file if you want to keep only part of the changes, and you can completely disregard them by clicking the x
next to the <<
(or >>
).
If you want to cancel the merge and try again, you can click the cancel button. You can then manually merge in your preferred merge tool or try to give IntelliJ another shot (the results will be the same however).