@Override
    public boolean isSameElementAs(Element<?> element) {
        ClassElement other = element.adaptTo(ClassElement.class);
        if (other == null) {
            return false;
        }
        return getClassName().equals(other.getClassName());
    }