VirtualFile (String filePath) { final VirtualFile fileByPath = LocalFileSystem.getInstance().findFileByPath(filePath); if (fileByPath != null) { return fileByPath; } // if we are in UnitTest mode probably TempFileSystem is used instead of LocalFileSystem if (ApplicationManager.getApplication().isUnitTestMode()) { return TempFileSystem.getInstance().findFileByPath(filePath); } return null; }