PsiExpression (DebuggerTreeNode node, DebuggerContext context) { LOG.assertTrue(node.getDescriptor() instanceof ArrayElementDescriptorImpl, node.getDescriptor().getClass().getName()); ArrayElementDescriptorImpl descriptor = (ArrayElementDescriptorImpl)node.getDescriptor(); PsiElementFactory elementFactory = JavaPsiFacade.getElementFactory(node.getProject()); try { LanguageLevel languageLevel = LanguageLevelProjectExtension.getInstance(node.getProject()).getLanguageLevel(); return elementFactory.createExpressionFromText("this[" + descriptor.getIndex() + "]", elementFactory.getArrayClass(languageLevel)); } catch (IncorrectOperationException e) { LOG.error(e); return null; } }