PsiElement (@NotNull PsiJavaModule module, @NotNull String text) { PsiJavaParserFacade facade = JavaPsiFacade.getInstance(module.getProject()).getParserFacade(); PsiStatement statement = facade.createModuleStatementFromText(text, null); return addModuleStatement(module, statement); }