void (List<ExtensionCandidate> candidates, int expectedExtensionCount) { assertSize(expectedExtensionCount, candidates); for (int i = 0; i < expectedExtensionCount; i++) { ExtensionCandidate candidate = candidates.get(i); assertNotNull(candidate); DomElement domElement = DomManager.getDomManager(getProject()).getDomElement(candidate.pointer.getElement()); assertInstanceOf(domElement, Extension.class); } }