private static void addMethod(final PsiMethod patternMethod,
                                int typeParamIndex,
                                List<? super PatternMethod> patternMethods,
                                int argIdx) {
    if (patternMethod != null) {
      patternMethods.add(new PatternMethod(patternMethod, typeParamIndex, argIdx));
    }
  }
private static void addMethod(final PsiMethod patternMethod,
                                int typeParamIndex,
                                List<? super PatternMethod> patternMethods,
                                int argIdx)