diff --git a/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/CallInfo.java b/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/CallInfo.java index b0b2067e326e..a941fe2f0ded 100644 --- a/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/CallInfo.java +++ b/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/CallInfo.java @@ -1,18 +1,6 @@ -/* - * Copyright 2000-2014 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2000-2017 JetBrains s.r.o. +// Use of this source code is governed by the Apache 2.0 license that can be +// found in the LICENSE file. package org.jetbrains.plugins.groovy.codeInspection.assignment; import com.intellij.psi.PsiElement; @@ -39,9 +27,6 @@ public interface CallInfo { @Nullable PsiType getQualifierInstanceType(); - @NotNull - PsiElement getHighlightElementForCategoryQualifier() throws UnsupportedOperationException; - @NotNull PsiElement getElementToHighlight(); diff --git a/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/DelegatingCallInfo.java b/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/DelegatingCallInfo.java index 1331334a5f00..e16817d8f64b 100644 --- a/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/DelegatingCallInfo.java +++ b/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/DelegatingCallInfo.java @@ -1,18 +1,6 @@ -/* - * Copyright 2000-2014 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2000-2017 JetBrains s.r.o. +// Use of this source code is governed by the Apache 2.0 license that can be +// found in the LICENSE file. package org.jetbrains.plugins.groovy.codeInspection.assignment; import com.intellij.psi.PsiElement; @@ -57,12 +45,6 @@ public class DelegatingCallInfo implements CallInfo< return myDelegate.getQualifierInstanceType(); } - @NotNull - @Override - public PsiElement getHighlightElementForCategoryQualifier() throws UnsupportedOperationException { - return myDelegate.getHighlightElementForCategoryQualifier(); - } - @NotNull @Override public PsiElement getElementToHighlight() { diff --git a/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/GrBinaryExprInfo.java b/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/GrBinaryExprInfo.java index 3974adaf8e3e..eeb686bbac3a 100644 --- a/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/GrBinaryExprInfo.java +++ b/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/GrBinaryExprInfo.java @@ -1,18 +1,6 @@ -/* - * Copyright 2000-2014 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2000-2017 JetBrains s.r.o. +// Use of this source code is governed by the Apache 2.0 license that can be +// found in the LICENSE file. package org.jetbrains.plugins.groovy.codeInspection.assignment; import com.intellij.psi.PsiElement; @@ -60,12 +48,6 @@ public class GrBinaryExprInfo implements CallInfo { return myExpr.getLeftOperand().getType(); } - @NotNull - @Override - public PsiElement getHighlightElementForCategoryQualifier() { - return myExpr.getOperationToken(); - } - @NotNull @Override public PsiElement getElementToHighlight() { diff --git a/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/GrConstructorInvocationInfo.java b/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/GrConstructorInvocationInfo.java index 9c16c058a30a..de4aa5fb0ca8 100644 --- a/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/GrConstructorInvocationInfo.java +++ b/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/GrConstructorInvocationInfo.java @@ -1,18 +1,6 @@ -/* - * Copyright 2000-2014 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2000-2017 JetBrains s.r.o. +// Use of this source code is governed by the Apache 2.0 license that can be +// found in the LICENSE file. package org.jetbrains.plugins.groovy.codeInspection.assignment; import com.intellij.psi.PsiElement; @@ -47,12 +35,6 @@ public class GrConstructorInvocationInfo extends ConstructorCallInfoBase return null; } - @NotNull - @Override - public PsiElement getHighlightElementForCategoryQualifier() { - throw new UnsupportedOperationException("not applicable"); - } - @NotNull @Override public PsiElement getElementToHighlight() { diff --git a/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/GrIndexPropertyInfo.kt b/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/GrIndexPropertyInfo.kt index f4bbd97fe0ae..fcd76716612e 100644 --- a/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/GrIndexPropertyInfo.kt +++ b/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/GrIndexPropertyInfo.kt @@ -1,18 +1,6 @@ -/* - * Copyright 2000-2017 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2000-2017 JetBrains s.r.o. +// Use of this source code is governed by the Apache 2.0 license that can be +// found in the LICENSE file. package org.jetbrains.plugins.groovy.codeInspection.assignment import com.intellij.psi.PsiElement @@ -42,7 +30,6 @@ class GrIndexPropertyInfo(private val myCall: GrIndexProperty, private val rhs: override fun multiResolve(): Array = myCall.multiResolve(rhs) - override fun getHighlightElementForCategoryQualifier(): PsiElement = TODO("not supported") override fun getExpressionArguments() = TODO("not supported") override fun getClosureArguments() = TODO("not supported") override fun getNamedArguments() = TODO("not supported") diff --git a/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/GrListOrMapInfo.java b/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/GrListOrMapInfo.java index 93951d98277a..a15e37a342d7 100644 --- a/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/GrListOrMapInfo.java +++ b/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/GrListOrMapInfo.java @@ -1,18 +1,6 @@ -/* - * Copyright 2000-2017 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2000-2017 JetBrains s.r.o. +// Use of this source code is governed by the Apache 2.0 license that can be +// found in the LICENSE file. package org.jetbrains.plugins.groovy.codeInspection.assignment; import com.intellij.psi.PsiClass; @@ -77,12 +65,6 @@ public class GrListOrMapInfo implements ConstructorCallInfo { return null; } - @NotNull - @Override - public PsiElement getHighlightElementForCategoryQualifier() throws UnsupportedOperationException { - throw new UnsupportedOperationException("not applicable"); - } - @NotNull @Override public PsiElement getElementToHighlight() { diff --git a/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/GrMethodCallInfo.java b/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/GrMethodCallInfo.java index 3007d2731468..7fabe4dd3cc8 100644 --- a/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/GrMethodCallInfo.java +++ b/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/GrMethodCallInfo.java @@ -1,18 +1,6 @@ -/* - * Copyright 2000-2014 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2000-2017 JetBrains s.r.o. +// Use of this source code is governed by the Apache 2.0 license that can be +// found in the LICENSE file. package org.jetbrains.plugins.groovy.codeInspection.assignment; import com.intellij.psi.PsiElement; @@ -48,19 +36,6 @@ public class GrMethodCallInfo extends CallInfoBase implements Call return invoked instanceof GrReferenceExpression ? PsiImplUtil.getQualifierType((GrReferenceExpression)invoked) : null; } - @NotNull - @Override - public PsiElement getHighlightElementForCategoryQualifier() { - GrExpression invoked = getCall().getInvokedExpression(); - if (invoked instanceof GrReferenceExpression) { - PsiElement nameElement = ((GrReferenceExpression)invoked).getReferenceNameElement(); - if (nameElement != null) { - return nameElement; - } - } - return invoked; - } - @NotNull @Override public PsiElement getElementToHighlight() { diff --git a/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/GrNewExpressionInfo.java b/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/GrNewExpressionInfo.java index 9e1f155dced4..1f4a63cae5b3 100644 --- a/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/GrNewExpressionInfo.java +++ b/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/assignment/GrNewExpressionInfo.java @@ -1,18 +1,6 @@ -/* - * Copyright 2000-2014 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2000-2017 JetBrains s.r.o. +// Use of this source code is governed by the Apache 2.0 license that can be +// found in the LICENSE file. package org.jetbrains.plugins.groovy.codeInspection.assignment; import com.intellij.psi.PsiElement; @@ -50,12 +38,6 @@ public class GrNewExpressionInfo extends ConstructorCallInfoBase