boolean (ConfigurationContext context) { if (!context.containsMultipleSelection()) return false; final DataContext dataContext = context.getDataContext(); if (TestsUIUtil.isMultipleSelectionImpossible(dataContext)) return false; final LinkedHashSet<String> classes = new LinkedHashSet<>(); final PsiElementProcessor.CollectElementsWithLimit<PsiElement> processor = new PsiElementProcessor.CollectElementsWithLimit<>(2); final PsiElement[] locationElements = collectLocationElements(classes, dataContext); if (locationElements != null) { collectTestMembers(locationElements, false, false, processor); } else { collectContextElements(dataContext, false, false, classes, processor); } return processor.getCollection().size() > 1; }