boolean (@NotNull MoveMembersOptions options, @NotNull MoveMembersProcessor.MoveMembersUsageInfo usage) { final PsiElement element = usage.getElement(); if (element == null || !element.isValid()) return true; if (usage.reference instanceof GrReferenceExpression refExpr) { GrExpression qualifier = refExpr.getQualifierExpression(); if (qualifier != null) { if (usage.qualifierClass != null) { changeQualifier(refExpr, usage.qualifierClass, usage.member); } else { refExpr.setQualifier(null); } } else { // no qualifier if (usage.qualifierClass != null) { changeQualifier(refExpr, usage.qualifierClass, usage.member); } } return true; } return false; }