File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
src/com/jetbrains/idear/asr Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -273,15 +273,17 @@ private void applyAction(String c) {
273
273
if (r .isMatching (c )) {
274
274
DataManager .getInstance ()
275
275
.getDataContextFromFocus ()
276
- .doWhenDone ((Consumer <DataContext >) dataContext -> ApplicationManager
277
- .getApplication ()
278
- .runWriteAction (() -> {
279
- r .getActionInfo (c , dataContext );
280
- }));
276
+ .doWhenDone ((Consumer <DataContext >) dataContext -> run (r , c , dataContext ));
281
277
}
282
278
}
283
279
}
284
280
281
+ private void run (SurroundWithNoNullCheckRecognizer rec , String c , DataContext dataContext ) {
282
+ ApplicationManager .getApplication ().runWriteAction (() -> {
283
+ rec .getActionInfo (c , dataContext );
284
+ });
285
+ }
286
+
285
287
private void tellJoke () {
286
288
ServiceManager
287
289
.getService (TTSService .class )
You can’t perform that action at this time.
0 commit comments