AccessibleContext () { if (accessibleContext == null) { accessibleContext = new AccessibleJPanel() { @Override public AccessibleRole getAccessibleRole() { return AccessibleRole.UNKNOWN; } @Override public AccessibleStateSet getAccessibleStateSet() { AccessibleStateSet stateSet = new AccessibleStateSet(); stateSet.addAll(myUsageRenderer.getAccessibleContext().getAccessibleStateSet().toArray()); stateSet.addAll(myFileAndLineNumber.getAccessibleContext().getAccessibleStateSet().toArray()); return stateSet; } @Override public int getAccessibleIndexInParent() { return 0; } @Override public int getAccessibleChildrenCount() { return 0; } @Override public Accessible getAccessibleChild(int i) { return null; } }; } return accessibleContext; }