@Override
	public ArrayList<Diagnostic> identify(SchemaNode node) {
        ArrayList<Diagnostic> ret = new ArrayList<>();

        if (!node.isASTInstance(identifierWithDashStr.class)) return ret;
        if (node.getParent() == null || !node.getParent().isASTInstance(inheritsRankProfile.class)) return ret;

        if (!node.hasSymbol()) {
            return ret;
        }

        context.addUnresolvedInheritanceNode(node);

        return ret;
	}
IdentifyRankProfileInheritance indentifies inheritance of a rank-profile and adds it to a list to resolve later.
integration/schema-language-server/language-server/src/main/java/ai/vespa/schemals/schemadocument/parser/schema/IdentifyRankProfileInheritance.java