Calculate the area of ​the shaded region BPIQ 
In the figure, $P$, $Q$ and $I$ are the incenters of the
triangles $\triangle AHB$, $\triangle BHC$ and $\triangle ABC$ respectively. Calculate the area of ​​the shaded region if $MN = a$.
(Answer: $\frac{a^2}{2}$)


My progress:
$S_{BPQI} = S_{\triangle BPQ}-S_{\triangle BQI}.$
$P$ is incenter, therefore $BP$ is angle bisector of $\angle ABH$.
Let $\angle ABP = \angle PBI = \alpha$.
But $JM \parallel JB \implies \angle BPM = \alpha$.
Therefore $ \triangle MPB$ is isosceles.
Similarly $\triangle BNQ$ is isosceles.
....??
 A: Hint 1: The area of a quadrilateral is the area of $\triangle ABC$ minus the areas of 3 similar triangles.
Hint 2: What are the angles $\angle AMI$ and $\angle CNI$?

Actually, you don't need hint 1. There is an elegant solution.

After you have shown $\angle AMI=\angle CNI = 90^\circ$, you know that $BMIN$ is a square with $MN=a$ as a diagonal. It also implies that $MP=MB=NB=NQ$. Drop altitudes $PM'$ and $QN'$ on $MN$. One can find $NN'=MM'$ and $N'Q\parallel BI\parallel M'P$ (because $BI$ is also a diagonal in a square). Thus we conclude that $S_{BPIQ}=S_{BM'IN'}=S_{BMIN}=a^2/2$.

Edit 2: To show hint 2, drop an altitude $IS$ on $AB$. If $SI=r$ is an inradius of $ABC$, then the distance $SK=r\frac{AB}{AC}$. On the other hand, triangles $BAH$ and $ABC$ are similar with the coefficient $\frac{AB}{AC}$, so the inradius of $BAH$ is also $r\frac{AB}{AC}$. Thus, we conclude that $P$ and $S$ have the same distance to $BH$ and belong to the same parallel line

A: 
Say, $x$ is inradius of $\triangle ABH$, $y$ is inradius of $\triangle CBH$ and $z$ is inradius of $\triangle ABC$. As $\triangle AHB, \triangle BHC$ and $\triangle ABC$ are similar, their hypotenuse are in ratio,
$AB:BC:AC = x:y:z~$ and $~z^2 = x^2 + y^2$
Now we extend $JM$ and $KN$ to $RS \parallel AC$.
As $\triangle BRM \sim \triangle ABC, RM = y$. Also, $SN = x$. So we have $BM = BN = z$.
Now as $BM = BN = z$ which is inradius of right triangle $\triangle ABC$, $IM$ and $IN$ must be perp to $AB$ and $BC$ respectively. That leads to $BI = a$ and $BI \perp MN$.
$ \displaystyle [BPIQ]  = \frac 12 \cdot MN \cdot BI = \frac{a^2}{2}$
