/*
 * Copyright 2000-2015 JetBrains s.r.o.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.jetbrains.debugger;

import com.intellij.xdebugger.XSourcePosition;
import com.intellij.xdebugger.breakpoints.XLineBreakpoint;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.concurrency.Promise;

import java.util.List;

public interface LineBreakpointManager {
  void setBreakpoint(@NotNull XLineBreakpoint<?> breakpoint, boolean onlySourceMappedBreakpoints);

  @NotNull
  Promise<Void> removeBreakpoint(@NotNull XLineBreakpoint<?> breakpoint, boolean temporary);

  void setBreakpoint(@NotNull XLineBreakpoint<?> breakpoint, @NotNull List<Location> locations);

  void runToLocation(@NotNull XSourcePosition position);

  void updateAllBreakpoints();

  @NotNull
  Promise<Void> removeAllBreakpoints();

  void clearRunToLocationBreakpoints();
}
@@ -624,17 +624,16 @@
 debugger
-;
 %0A%0Aimport
@@ -671,17 +671,16 @@
 Position
-;
 %0Aimport 
@@ -733,51 +733,8 @@
 oint
-;%0Aimport org.jetbrains.annotations.NotNull;
 %0Aimp
@@ -774,33 +774,8 @@
 mise
-;%0A%0Aimport java.util.List;
 %0A%0Apu
@@ -815,20 +815,26 @@
 ger %7B%0A  
-void
+public fun
  setBrea
@@ -836,32 +836,35 @@
 tBreakpoint(
-@NotNull
+breakpoint:
  XLineBreakp
@@ -868,38 +868,19 @@
 akpoint%3C
-?%3E breakpoint, boolean
+*%3E,
  onlySou
@@ -903,38 +903,32 @@
 ints
-);%0A%0A  @NotNull%0A  Promise%3CVoid%3E
+: Boolean)%0A%0A  public fun
  rem
@@ -937,32 +937,35 @@
 eBreakpoint(
-@NotNull
+breakpoint:
  XLineBreakp
@@ -973,50 +973,60 @@
 int%3C
-?%3E breakpoint, boolean temporary);%0A%0A  void
+*%3E, temporary: Boolean): Promise%3CVoid%3E%0A%0A  public fun
  set
@@ -1036,24 +1036,27 @@
 akpoint(
-@NotNull
+breakpoint:
  XLineBr
@@ -1068,115 +1068,93 @@
 int%3C
-?%3E breakpoint, @NotNull List%3CLocation%3E locations);%0A%0A  void runToLocation(@NotNull XSourcePosition p
+*%3E, locations: List%3CLocation%3E)%0A%0A  public fun runToLocation(position: XSourceP
 osition)
 ;%0A%0A 
@@ -1149,25 +1149,30 @@
 osition)
-;
 %0A%0A  
-void
+public fun
  updateA
@@ -1190,69 +1190,74 @@
 ts()
-;
 %0A%0A  
-@NotNull%0A  Promise%3CVoid%3E removeAllBreakpoints();%0A%0A  void
+public fun removeAllBreakpoints(): Promise%3CVoid%3E%0A%0A  public fun
  cle
@@ -1284,11 +1284,10 @@
 points()
-;
 %0A%7D

convert to kotlin