boolean (PsiMethod @NotNull [] methods) { if (methods.length == 0) return true; MethodSignature methodSignature = methods[0].getSignature(PsiSubstitutor.EMPTY); for (int i = 1; i < methods.length; i++) { PsiMethod method = methods[i]; if (!methodSignature.equals(method.getSignature(PsiSubstitutor.EMPTY))) return false; } return true; }