User: 7410 Date: 05 Aug 24 13:58 Revision: fed20eb2eeb5e4de4fed49190e051a215918148f Summary: made "Method must not be static" error be on the static keyword instead of the method (#2354) TeamCity URL: https://ci.mcdev.io/viewModification.html?tab=vcsModificationFiles&modId=9556&personal=false Index: src/main/kotlin/platform/mixin/inspection/injector/InvalidInjectorMethodSignatureInspection.kt =================================================================== --- src/main/kotlin/platform/mixin/inspection/injector/InvalidInjectorMethodSignatureInspection.kt (revision b0aa3136c682f580f628fc9957504ded0ba088bc) +++ src/main/kotlin/platform/mixin/inspection/injector/InvalidInjectorMethodSignatureInspection.kt (revision fed20eb2eeb5e4de4fed49190e051a215918148f) @@ -32,6 +32,7 @@ import com.demonwav.mcdev.platform.mixin.util.isConstructor import com.demonwav.mcdev.platform.mixin.util.isMixinExtrasSugar import com.demonwav.mcdev.util.Parameter +import com.demonwav.mcdev.util.findKeyword import com.demonwav.mcdev.util.fullQualifiedName import com.demonwav.mcdev.util.invokeLater import com.demonwav.mcdev.util.synchronize @@ -133,7 +134,7 @@ } else if (!shouldBeStatic && modifiers.hasModifierProperty(PsiModifier.STATIC)) { reportedStatic = true holder.registerProblem( - identifier, + modifiers.findKeyword(PsiModifier.STATIC) ?: identifier, "Method must not be static", QuickFixFactory.getInstance().createModifierListFix( modifiers,