That method is called in 4 other files. Without going through the game and checking what it's doing, I assume this is the one that's relevant for you:
core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/TalentsPane.java line 204:
int openStars = Dungeon.hero.talentPointsAvailable(tier);
To find this (and other instances), you need to search the entire repo, not just the file, for instances of this method, like so:
(Press Enter to perform the search; the contextual item that appears in the search box as you type will only show the method definition.)