@NotNull
public static String getDefaultBundlesOutputPath(JpsProject project) {
JpsJavaExtensionService service = JpsJavaExtensionService.getInstance();
JpsJavaProjectExtension extension = service.getProjectExtension(project);
if (extension != null) {
String outputUrl = extension.getOutputUrl();
if (outputUrl != null) {
return JpsPathUtil.urlToPath(outputUrl) + "/bundles";
}
}
// this actually should never happen (only in tests)