void (@NotNull Document document, @NotNull Project project, @NotNull TextFieldWithAutoCompletionListProvider provider, boolean autoPopup) { PsiFile psiFile = PsiDocumentManager.getInstance(project).getPsiFile(document); if (psiFile != null) { TextCompletionUtil.installProvider(psiFile, provider, autoPopup); } }