void (@NotNull PsiField psiField, @NotNull PsiClass psiClass, @NotNull AbstractLogProcessor logProcessor, @NotNull String lombokLoggerName) { if (!lombokLoggerName.equals(psiField.getName())) { RenameProcessor processor = new RenameProcessor(psiField.getProject(), psiField, lombokLoggerName, false, false); processor.doRun(); } addAnnotation(psiClass, logProcessor.getSupportedAnnotationClasses()[0]); psiField.delete(); }