/**
* Removes from the list of features any that have a feature group that is not
* displayed, or duplicate the location of a feature of the same type (unless
/**
* Removes from the list of features any that have a feature group that is not
* displayed, or duplicate the location of a feature of the same type (unless
* (checking type and isContactFeature as a fail-safe here, although
* currently they are guaranteed to match in this context)
*/
* (checking type and isContactFeature as a fail-safe here, although
* currently they are guaranteed to match in this context)
*/
{
if (lastFeature != null && sf.getBegin() == lastFeature.getBegin()
&& sf.getEnd() == lastFeature.getEnd()
{
if (lastFeature != null && sf.getBegin() == lastFeature.getBegin()
&& sf.getEnd() == lastFeature.getEnd()