for (final IAnnotation duplicate : matchesById) { final IAnnotation other = getVisibleDuplicate(duplicate, matchesById); final IType parent = (IType) duplicate.getAncestor(IJavaElement.TYPE); if (S2eUtils.exists(parent) && S2eUtils.exists(other)) { @SuppressWarnings("squid:S2259") final IType otherParent = (IType) other.getAncestor(IJavaElement.TYPE); final ISourceRange sourceRange = duplicate.getSourceRange(); if (S2eUtils.exists(otherParent) && SourceRange.isAvailable(sourceRange)) {