void (PsiClass controllerClass, String name) { final PsiMethod[] methods = controllerClass.findMethodsByName(name, false); assertOrderedEquals(Arrays.stream(methods).map(PsiMethod::getName).toArray(), name); }