No need to have protected utility method

GitOrigin-RevId: e2691b87289c8f7846c8e40a4177632d424da601
This commit is contained in:
Dmitry Trofimov
2019-09-16 18:10:29 +02:00
committed by intellij-monorepo-bot
parent 0a08f82123
commit 8ecd83341a

View File

@@ -30,7 +30,7 @@ import java.util.stream.Stream;
/**
* @author max
*/
public class PyPsiUtils {
public final class PyPsiUtils {
private static final Logger LOG = Logger.getInstance(PyPsiUtils.class.getName());
@@ -38,7 +38,7 @@ public class PyPsiUtils {
}
@NotNull
protected static <T extends PyElement> T[] nodesToPsi(ASTNode[] nodes, T[] array) {
static <T extends PyElement> T[] nodesToPsi(ASTNode[] nodes, T[] array) {
T[] psiElements = ArrayUtil.newArray(ArrayUtil.getComponentType(array), nodes.length);
for (int i = 0; i < nodes.length; i++) {
//noinspection unchecked
@@ -648,4 +648,4 @@ public class PyPsiUtils {
return element.getText();
}
}
}
}