How to register a custom PsiClass into a project so that it can automatically prompt when entering code

This cannot solve my problem, my problem and How to register a psi file created in memory into a project module? Same, but there’s no answer inside