ModCommand (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { final PsiJavaCodeReferenceElement referenceElement = (PsiJavaCodeReferenceElement)descriptor.getStartElement(); final PsiClass iface = (PsiClass)referenceElement.resolve(); assert iface != null; final PsiField[] allFields = iface.getAllFields(); final PsiClass implementingClass = ClassUtils.getContainingClass(referenceElement); assert implementingClass != null; final PsiFile file = implementingClass.getContainingFile(); return ModCommand.psiUpdate(ActionContext.from(descriptor), updater -> processUsages(allFields, implementingClass, project, iface, file, updater)); }