mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
@NotNull
This commit is contained in:
@@ -20,7 +20,7 @@ import java.util.List;
|
||||
*/
|
||||
public class RenamePyClassProcessor extends RenamePsiElementProcessor {
|
||||
@Override
|
||||
public boolean canProcessElement(PsiElement element) {
|
||||
public boolean canProcessElement(@NotNull PsiElement element) {
|
||||
return element instanceof PyClass;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@ import com.jetbrains.python.psi.PyClass;
|
||||
import com.jetbrains.python.psi.PyFunction;
|
||||
import com.jetbrains.python.psi.search.PyOverridingMethodsSearch;
|
||||
import com.jetbrains.python.psi.search.PySuperMethodsSearch;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -21,7 +22,7 @@ import java.util.Map;
|
||||
*/
|
||||
public class RenamePyFunctionProcessor extends RenamePsiElementProcessor {
|
||||
@Override
|
||||
public boolean canProcessElement(PsiElement element) {
|
||||
public boolean canProcessElement(@NotNull PsiElement element) {
|
||||
return element instanceof PyFunction;
|
||||
}
|
||||
|
||||
|
||||
@@ -4,13 +4,14 @@ import com.intellij.psi.PsiElement;
|
||||
import com.intellij.refactoring.rename.RenamePsiElementProcessor;
|
||||
import com.jetbrains.python.codeInsight.PyCodeInsightSettings;
|
||||
import com.jetbrains.python.psi.PyElement;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author yole
|
||||
*/
|
||||
public class RenamePyVariableProcessor extends RenamePsiElementProcessor {
|
||||
@Override
|
||||
public boolean canProcessElement(PsiElement element) {
|
||||
public boolean canProcessElement(@NotNull PsiElement element) {
|
||||
// extension ordering in python-plugin-common.xml ensures that classes and variables are handled by their own processors
|
||||
return element instanceof PyElement;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user