Regarding java:S2259, NullPointerException not being reported

Hi, So I thought I should clarify few things here :

package org.example;
import org.apache.commons.collections4.CollectionUtils;

import java.util.List;

public class dummy {
    public Integer process(List<Integer> a) {
        if (CollectionUtils.isEmpty(a)) {
            return a.get(0) + a.get(1);
        }
        return 0;
    }
}

Whereas the below code reports an NPE.

package org.example;

import java.util.Collection;
import java.util.List;

public class dummy {
    public Integer process(List<Integer> a) {
        if (isEmpty(a)) {
            return a.get(0) + a.get(1);
        }
        return 0;
    }

    public static boolean isEmpty(Collection<?> coll) {
        return coll == null || coll.isEmpty();
    }
} 

The underlying code for
org.apache.commons.collections4.CollectionUtils.isEmpty() = dummy.isEmpty()

My only question is, even though config for this method is explicitly defined in the json file, why is it unable to track NPE ?