}
}
public void updateCodeCompletion() {
try {
ExpressionTemplate template = replClient.template(myEditorDocument.getText());
PsiFile contextFile = PsiFileFactory.getInstance(myProject).createFileFromText(randomIdentifier("Template") + ".java", JavaLanguage.INSTANCE, template.template());
PsiCodeFragment consoleFile = JavaCodeFragmentFactory.getInstance(myProject).createCodeBlockCodeFragment(myEditorDocument.getText(), contextFile.findElementAt(contextFile.getText().indexOf(template.token())), false);
myVirtualFile = (LightVirtualFile) consoleFile.getViewProvider().getVirtualFile();
myFile = ObjectUtils.assertNotNull(PsiManager.getInstance(myProject).findFile(myVirtualFile));
PsiDocumentManagerImpl.cachePsi(myEditorDocument, myFile);
} catch (Exception e) {