List<String> (@NotNull String currentFilePath) { myFixture.configureByFile(currentFilePath); final PsiReference reference = PyResolveTestCase.findReferenceByMarker(myFixture.getFile()); final VirtualFile root = ModuleRootManager.getInstance(myFixture.getModule()).getSourceRoots()[0]; final Stream<PsiFileSystemItem> fileSystemItems; if (reference instanceof PsiPolyVariantReference) { final ResolveResult[] results = ((PsiPolyVariantReference)reference).multiResolve(false); fileSystemItems = Arrays.stream(results).map(r -> PyPsiUtils.getFileSystemItem(r.getElement())); } else { fileSystemItems = Stream.of(PyPsiUtils.getFileSystemItem(reference.resolve())); } return fileSystemItems.map(f -> VfsUtilCore.getRelativeLocation(f.getVirtualFile(), root)).collect(Collectors.toList()); }