void (@Nullable CompiledPattern compiledPattern) { final MatchOptions matchOptions = getConfiguration().getMatchOptions(); final CompiledPattern finalCompiledPattern = compiledPattern == null ? PatternCompiler.compilePattern(myProject, matchOptions, false, false) : compiledPattern; if (finalCompiledPattern == null) return; ApplicationManager.getApplication().invokeLater(() -> { SubstitutionShortInfoHandler.updateEditorInlays(mySearchCriteriaEdit.getEditor()); if (myReplace) SubstitutionShortInfoHandler.updateEditorInlays(myReplaceCriteriaEdit.getEditor()); myFilterPanel.setCompiledPattern(finalCompiledPattern); if (myFilterPanel.getVariable() == null) { myFilterPanel.initFilters(UIUtil.getOrAddVariableConstraint(Configuration.CONTEXT_VAR_NAME, myConfiguration)); } }, ModalityState.stateForComponent(myFilterPanel.getComponent())); }