void (IndexingContext ctx) { try { if (p.isCanceled()) throw new MavenProcessCanceledRuntimeException(); p.setText("Maven Indexing Started"); } catch (RemoteException e) { throw new RuntimeException(e); } }