PsiJavaCodeReferenceElement () { final String refText = getImportReferenceText(); if (refText == null) return null; final PsiJavaParserFacade parserFacade = JavaPsiFacade.getInstance(getProject()).getParserFacade(); try { return parserFacade.createReferenceFromText(refText, getPsi()); } catch (IncorrectOperationException e) { return null; } }