void (@NotNull AnActionEvent e) { Project project = e.getProject(); assert project != null; PsiMethod method = findMethodAtCaret(e); if (method != null) { showDiscoveredTestsByPsiMethod(project, method, e); return; } PsiClass psiClass = findClassAtCaret(e); if (psiClass != null) { showDiscoveredTestsByPsiClass(project, psiClass, e); return; } if (e.getData(VcsDataKeys.CHANGES) != null) { showDiscoveredTestsByChanges(e); return; } List<VirtualFile> virtualFiles = findFilesInContext(e); if (!virtualFiles.isEmpty()) { showDiscoveredTestsByFile(project, virtualFiles, e); } }