Before getting rid of individual methods for finding searching ranges
between each kind of junctions
Started trying IntelliJ Idea