void (@NotNull ActionContext context, @NotNull PsiClass psiClass, @NotNull ModPsiUpdater updater) { PsiMethod method = createMethod(psiClass); if (method.getContainingFile().getOriginalFile() == context.file()) { GenerateMembersUtil.positionCaret(updater, method, true); } }