private final StubPath myPath;
public StubPathReference(final PsiFile file, final StubPath path) {
myFile = file;
myPath = path;
}
<BUG>public PsiElement retrieve() {
return StubPathBuilder.resolve(myFile, myPath);
}</BUG>
public PsiFile getFile() {
return myFile;

private final StubPath myPath;
public StubPathReference(final PsiFile file, final StubPath path) {
myFile = file;
myPath = path;
}
public PsiElement retrieve() {
return ApplicationManager.getApplication().runReadAction(new Computable<PsiElement>() {
public PsiElement compute() {
return StubPathBuilder.resolve(myFile, myPath);
}
});
}
public PsiFile getFile() {
return myFile;
