Check ElementKind insteadly.