LPS-48281 Moves the code to calculate the checkednodes to java