int[][] () { final int[][] result = new int[myElementAnchors.length][2]; int idx = 0; for (PsiAnchor anchor : myElementAnchors) { result[idx][0] = anchor.getStartOffset(); result[idx++][1] = anchor.getEndOffset(); } return result; }