boolean (Long previousGroupHead) { Long aLong = getOptional().get(); return <warning descr="Unnecessary 'null' check before 'equals()' call">previousGroupHead != null</warning> && previousGroupHead.equals(aLong); }