void (PsiMethod method, PsiClass containingClass, PsiClass baseClass) { if (!FileModificationService.getInstance().prepareFileForWrite(baseClass.getContainingFile())) return; final MemberInfo memberInfo = new MemberInfo(method); memberInfo.setChecked(true); memberInfo.setToAbstract(true); var supportProvider = LanguageRefactoringSupport.INSTANCE.forLanguage(JavaLanguage.INSTANCE); var handler = (JavaPullUpHandlerBase)supportProvider.getPullUpHandler(); if (handler == null) { throw new IllegalStateException("Handler is null, supportProvider class = " + supportProvider.getClass()); } handler.runSilently(containingClass, baseClass, new MemberInfo[]{memberInfo}, new DocCommentPolicy<>(DocCommentPolicy.ASIS)); }