Пример #1
0
    @Override
    @Nullable
    public PsiElement retrieve() {
      PsiFile psiFile = getFile();
      if (psiFile == null || !psiFile.isValid()) return null;

      return SelfElementInfo.findElementInside(psiFile, myStartOffset, myEndOffset, myInfo);
    }
Пример #2
0
 @Override
 public PsiElement retrieve() {
   return SelfElementInfo.restoreDirectoryFromVirtual(myFile, myProject);
 }
Пример #3
0
 @Override
 @Nullable
 public PsiFile getFile() {
   return SelfElementInfo.restoreFileFromVirtual(myFile, myProject, myLanguage);
 }