Object[] (final Project project) { final VirtualFile file = VirtualFileManager.getInstance().findFileByUrl(url); if (file == null || !file.isValid()){ return null; } return new Object[]{PsiManager.getInstance(project).findFile(file)}; }