Existence and Concentration of Nontrivial Solitary Waves for a Generalized Kadomtsev--Petviashvili Equation in $\Mathbb{R}^2$