コード例 #1
0
 @Nullable
 public XmlElement getContextElement() {
   return myContextElement.getElement();
 }
 @Nullable
 private static XmlTag getTagByInjectedFile(final PsiFile file) {
   final SmartPsiElementPointer pointer = file.getUserData(FileContextUtil.INJECTED_IN_ELEMENT);
   final PsiElement element = pointer == null ? null : pointer.getElement();
   return element instanceof XmlText ? ((XmlText) element).getParentTag() : null;
 }