PsiType[] () { int offset = getEditor().getCaretModel().getOffset(); PsiElement element = getFile().findElementAt(offset); assertNotNull(element); PsiElement parent = element.getParent(); assertTrue(parent instanceof PsiReferenceExpression); PsiExpression expr = (PsiExpression)parent; return GuessManager.getInstance(getProject()).guessContainerElementType(expr, null); }