Instantiate binding

The layout and binding are generated with such way:

    BeatBoxFragmentBinding binding =
        DataBindingUtil.inflate(inflater, R.layout.beat_box_fragment, container, false);

But we can use static method:

BeatBoxFragmentBinding binding = BeatBoxFragmentBinding.inflate(inflater, container, false);

Does the result the same?
What approach is better?