public void clearLogcat(@NotNull IDevice device,@NotNull Project project){
synchronized (myLock) {
    ExecutorService executor=myExecutors.get(device);
    if (executor != null) {
      stopReceiving(device);
      executor.submit(null);
      startReceiving(device);
    }
  }
}

public void clearLogcat ( @ NotNull IDevice device , @ NotNull Project project ) { synchronized ( myLock ) { ExecutorService executor = myExecutors . get ( device ) ; if ( executor != null ) { stopReceiving ( device ) ; executor . submit ( null ) ; startReceiving ( device ) ; } } }
clears logs for the current device .
