@Test public void getTypeVariables_forMethodWithTypeVars_returnsInfoForAllTypeVars() { ApplicationManager.getApplication() .invokeAndWait( () -> { assertOnDetachedHasInfoForAllTypeVars(getTypeVariables(methods[1])); }); }
static List<TypeVariableName> getTypeVariables(PsiMethod method) { return Arrays.stream(method.getTypeParameters()) .map(PsiMethodExtractorUtils::toTypeVariableName) .collect(Collectors.toList()); }
PsiMethodExtractorUtils { static List<TypeVariableName> getTypeVariables(PsiMethod method) { return Arrays.stream(method.getTypeParameters()) .map(PsiMethodExtractorUtils::toTypeVariableName) .collect(Collectors.toList()); } }
PsiMethodExtractorUtils { static List<TypeVariableName> getTypeVariables(PsiMethod method) { return Arrays.stream(method.getTypeParameters()) .map(PsiMethodExtractorUtils::toTypeVariableName) .collect(Collectors.toList()); }  }
PsiMethodExtractorUtils { static List<TypeVariableName> getTypeVariables(PsiMethod method) { return Arrays.stream(method.getTypeParameters()) .map(PsiMethodExtractorUtils::toTypeVariableName) .collect(Collectors.toList()); }   }
PsiMethodExtractorUtils { static List<TypeVariableName> getTypeVariables(PsiMethod method) { return Arrays.stream(method.getTypeParameters()) .map(PsiMethodExtractorUtils::toTypeVariableName) .collect(Collectors.toList()); }    }