AsyncTreeModel (Set<? extends PsiFile> deps, Marker marker) { return new AsyncTreeModel( new BackgroundTreeModel( () -> Objects.requireNonNull(PatternDialectProvider.getInstance(mySettings.SCOPE_TYPE)) .createTreeModel(myProject, deps, marker, mySettings) ), this ); }