@Nullable
 private String expandLinkedResourcesPath(final String path, ExpandMacroToPathMap expander) {
   final EclipseProjectFinder.LinkedResource linkedResource =
       EclipseProjectFinder.findLinkedResource(myRootPath, path);
   if (linkedResource != null) {
     if (linkedResource.containsPathVariable()) {
       final String toPathVariableFormat =
           getVariableRelatedPath(
               linkedResource.getVariableName(), linkedResource.getRelativeToVariablePath());
       return expander.substitute(toPathVariableFormat, SystemInfo.isFileSystemCaseSensitive);
     }
     return linkedResource.getLocation();
   }
   return null;
 }