PsiGenerationInfo<PsiMethod> (@NotNull PsiMethod s, boolean mergeIfExists) { for (MethodImplementor implementor : getImplementors()) { final GenerationInfo info = implementor.createGenerationInfo(s, mergeIfExists); if (info instanceof PsiGenerationInfo) { @SuppressWarnings("unchecked") final PsiGenerationInfo<PsiMethod> psiGenerationInfo = (PsiGenerationInfo<PsiMethod>)info; return psiGenerationInfo; } } return new PsiGenerationInfo<>(s); }