@NotNull CompileContext context) throws ProjectBuildException, IOException {
if (!holder.hasDirtyFiles() && !holder.hasRemovedFiles()) return;
JpsModule module = target.getModule();
JpsProject project = module.getProject();
ErlangCompilerOptions compilerOptions = JpsErlangCompilerOptionsExtension.getOrCreateExtension(project).getOptions();
if (!compilerOptions.myUseRebarCompiler) return;
String rebarExecutablePath = getRebarExecutablePath(project);
if (rebarExecutablePath == null) {
String errorMessage = "Rebar path is not set";