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