mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PHP nullability annotations
This commit is contained in:
@@ -204,16 +204,16 @@ public class PsiTreeUtil {
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Contract("null, _ -> null")
|
||||
public static <T extends PsiElement> T findChildOfType(@Nullable final PsiElement element, @NotNull final Class<T> aClass) {
|
||||
//noinspection unchecked
|
||||
return findChildOfAnyType(element, true, aClass);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Contract("null, _, _ -> null")
|
||||
public static <T extends PsiElement> T findChildOfType(@Nullable final PsiElement element,
|
||||
@NotNull final Class<T> aClass,
|
||||
final boolean strict) {
|
||||
//noinspection unchecked
|
||||
return findChildOfAnyType(element, strict, aClass);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user