void (@Nullable Editor editor, @Nullable Project project, int offset) { if (editor == null || project == null) return; TemplateManager.getInstance(project).finishTemplate(editor); final PsiFile psiFile = PsiUtilBase.getPsiFileInEditor(editor, project); if (psiFile == null) return; ApplicationManager.getApplication().invokeLater( () -> ShowParameterInfoHandler.invoke(project, editor, psiFile, offset, null, false)); }