From 76cd0b058124f04e10bf86e685e82c338c7b51bc Mon Sep 17 00:00:00 2001 From: "Andrei.Kuznetsov" Date: Thu, 29 Jan 2026 16:44:48 +0100 Subject: [PATCH] doc util-rt: Document com.intellij.util.ReflectionUtilRt.collectMethods GitOrigin-RevId: 1c3b69b46623f69724468155f15eef667d11f9c4 --- .../util-rt/src/com/intellij/util/ReflectionUtilRt.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/platform/util-rt/src/com/intellij/util/ReflectionUtilRt.java b/platform/util-rt/src/com/intellij/util/ReflectionUtilRt.java index 6c582e2d06be..4d9c2ad6bf4f 100644 --- a/platform/util-rt/src/com/intellij/util/ReflectionUtilRt.java +++ b/platform/util-rt/src/com/intellij/util/ReflectionUtilRt.java @@ -48,6 +48,15 @@ public final class ReflectionUtilRt { return result; } + /** + * Collects all methods declared in the given class or interface and its superclasses (including methods from Object) + * and interfaces, including public, protected, default (package) access, static, private methods, but excluding {@code } method. + *

+ * The same method with the same name and parameters may appear in the result several times with different receiver or return type. + * + * @param clazz The class to collect methods from. + * @return A list of methods declared in the class and its superclasses/interfaces. The list is not sorted. + */ @NotNull public static List collectMethods(@NotNull Class clazz) { List result = new ArrayList<>();