public String getPath() {
return myPath;
}
@NotNull
public String getRelativePath() {
<BUG>final File buildRoot = PantsUtil.findBuildRoot(new File(getPath()));

final String relativePath = buildRoot != null ? PantsUtil.getRelativeProjectPath(buildRoot, getPath()) : null;
return StringUtil.notNullize(relativePath, getPath());
}</BUG>
@NotNull

public String getPath() {
return myPath;
}
@NotNull
public String getRelativePath() {
final Optional<File> buildRoot = PantsUtil.findBuildRoot(new File(getPath()));
return buildRoot
.flatMap(file -> PantsUtil.getRelativeProjectPath(file, getPath()))
.orElse(getPath());
}
@NotNull
