void (@NotNull XValue value, @NotNull VirtualFile file, int offset) { final XTestNavigatable n = new XTestNavigatable(); ApplicationManager.getApplication().invokeAndWait(() -> value.computeSourcePosition(n)); assertNotNull(n.getPosition()); assertEquals(file, n.getPosition().getFile()); assertEquals(offset, n.getPosition().getOffset()); }