boolean (@NotNull Project project, @NotNull BuildDescriptor buildDescriptor) { ThreeState isNavigateToError = buildDescriptor instanceof DefaultBuildDescriptor ? ((DefaultBuildDescriptor)buildDescriptor).isNavigateToError() : ThreeState.UNSURE; BuildWorkspaceConfiguration workspaceConfiguration = BuildWorkspaceConfiguration.getInstance(project); return isNavigateToError == ThreeState.UNSURE ? workspaceConfiguration.isShowFirstErrorInEditor() : isNavigateToError.toBoolean(); }