PsiFile (@NotNull PsiFile file) { if (!file.getProject().equals(getProject())) { Logger.getInstance(FileContentImpl.class).error("psi file's project is not equal to file content's project"); } return file; }