webkit-codegen/src/test/java/androidx/webkit/internal/codegen/TestUtils.java
private static PsiJavaFile createPsiFileFromFile(Project project, String fileName) {
        FileType type = FileTypeRegistry.getInstance().getFileTypeByFileName(fileName);
        String code = readEntireFile(new File(fileName));
        return (PsiJavaFile)
                PsiFileFactory.getInstance(project).createFileFromText(fileName, type, code);
    }
/**
     * Use the project {@param project} to parse the file with name {@param fileName} into a PsiFile
     * object.
     */
Use the project  project to parse the file with name  fileName into a PsiFile
object.
Use the project project to parse the file with name fileName into a PsiFile object .
private static PsiJavaFile createPsiFileFromFile(Project project, String fileName) {
        FileType type = FileTypeRegistry.getInstance().getFileTypeByFileName(fileName);
        String code = readEntireFile(new File(fileName));
        return (PsiJavaFile)
                PsiFileFactory.getInstance(project).createFileFromText(fileName, type, code);
    }
private static PsiJavaFile createPsiFileFromFile ( Project project , String fileName ) { FileType type = FileTypeRegistry . getInstance ( ) . getFileTypeByFileName ( fileName ) ; String code = readEntireFile ( new File ( fileName ) ) ; return ( PsiJavaFile ) PsiFileFactory . getInstance ( project ) . createFileFromText ( fileName , type , code ) ; }
Use the project {@param project} to parse the file with name {@param fileName} into a PsiFile
 object.
Use the project { @param project } to parse the file with name { @param fileName } into a PsiFile object .