Object (@NotNull List<MavenSimpleNode> selectedNodes) { VirtualFile file = extractVirtualFile(selectedNodes); if (file == null) return null; List<String> goals = extractGoals(false, selectedNodes); if (goals == null) return null; PsiFile psiFile = PsiManager.getInstance(myProject).findFile(file); return psiFile == null ? null : new MavenGoalLocation(myProject, psiFile, goals); }