extracted a method for finding a corresponding visible cell.