PsiFile (PsiFile originalFile, LanguageFileType fileType) { final VirtualFile vFile = originalFile.getVirtualFile(); if (vFile == null) { return null; } try { return loadContentAsFile(originalFile.getProject(), vFile.getInputStream(), fileType); } catch (IOException e) { LOG.info(e); } return null; }