PsiMethod (PsiClass clazz, String name) { PsiMethod[] methods = clazz.getMethods(); // use reverse to find from bottom as the duplicate conflict resolution policy requires this for (int i = methods.length - 1; i >= 0; i--) { PsiMethod method = methods[i]; if (name.equals(method.getName())) { return method; } } return null; }