mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
IG: introduce convenience methods and cleanup
This commit is contained in:
@@ -59,6 +59,10 @@ public class UnusedSymbolUtil {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static boolean isImplicitRead(@NotNull PsiVariable variable) {
|
||||
return isImplicitRead(variable.getProject(), variable, null);
|
||||
}
|
||||
|
||||
public static boolean isImplicitRead(@NotNull Project project, @NotNull PsiVariable element, @Nullable ProgressIndicator progress) {
|
||||
for(ImplicitUsageProvider provider: Extensions.getExtensions(ImplicitUsageProvider.EP_NAME)) {
|
||||
checkCanceled(progress);
|
||||
@@ -69,6 +73,10 @@ public class UnusedSymbolUtil {
|
||||
return isInjected(project, element);
|
||||
}
|
||||
|
||||
public static boolean isImplicitWrite(@NotNull PsiVariable variable) {
|
||||
return isImplicitWrite(variable.getProject(), variable, null);
|
||||
}
|
||||
|
||||
public static boolean isImplicitWrite(@NotNull Project project,
|
||||
@NotNull PsiVariable element,
|
||||
@Nullable ProgressIndicator progress) {
|
||||
|
||||
Reference in New Issue
Block a user